JSF rendered is not working

后端 未结 1 544
小鲜肉
小鲜肉 2021-02-11 07:41

I have something like this on my webpage, a select/drop down menu. This drop down menu should generate another drop down menu based on selected item. The way I am doing it, is b

1条回答
  •  情深已故
    2021-02-11 08:22

    If partial rendering doesn't work a good starting point is to look into html source of your page as it is rendered in browser. Your render="divYearSelection" will only work if both (the ajax triggering component and the target component) have the same direct parent container.

    Ids of rendered html components usually look like id="formId:componentId:nestedComponentId1" or id="formId:componentId:nestedComponentId2"

    So a render="nestedComponentId2" called from component1 will only work if both ids have the same "trailer".

    You could try to use the complete id as given in the example starting with the id of the form or alternatively (if the whole form is not too big) use render="@form" which updates the whole form.

    0 讨论(0)
提交回复
热议问题