-
1. Rerender component after page load
ilya_shaikovsky Feb 23, 2011 6:14 AM (in response to pzelenka00)yup... just add jsFunction to the page and call it by name using onload.
-
2. Rerender component after page load
pzelenka00 Feb 23, 2011 6:57 AM (in response to ilya_shaikovsky)Thanks, however this didn't solve my problem. Let me tell you what I need to accomplish:
I have a page that has one <h:selectOneMenu> and one <rich:listShuttle>. When the user selects a value in the <h:selectOneMenu>, the options in the <rich:listShuttle> change based on the selection. Everything works fine except when the page is loaded <rich:listShuttle> doesn't show no options.
Is there any solution?
Here is sample of the code:
<h:selectOneMenu value="#{MyBean.titul}" ...>
<f:selectItems value="#{MyBean.titulListItems}"/>
<a4j:support event="onchange" ajaxSingle="true" reRender="box"/>
</h:selectOneMenu>
<rich:listShuttle id="box" sourceValue="#{MyBean.kurzList} targetValue="#{MyBean.selectedList}" ...>
-
3. Rerender component after page load
ilya_shaikovsky Feb 23, 2011 7:28 AM (in response to pzelenka00)so you just need to initialize initially kurzList and selectedList in myBean as need.
-
4. Re: Rerender component after page load
pzelenka00 Feb 23, 2011 7:53 AM (in response to ilya_shaikovsky)Thanks I expected this answer but hoped there is another solution.