This content has been marked as final.
Show 1 reply
-
1. Re: RF4 - collapsiblePanel, render problem
mausbull May 25, 2011 7:14 AM (in response to mausbull)Hi,
I solved the problem by changing the switchType to "client" and using an a4j:jsFunction to register the toggle events:
<rich:collapsiblePanel id="panel" header="My Panel" switchType="client" onbeforeswitch="managePanelToggleListener()" expanded="#{controller.panelOpen}" > <a4j:region> <!-- form stuff in here --> <a4j:commandButton id="add" value="add" execute="@region" render="panel" action="#{controller.add}"> </a4j:commandButton> </a4j:region> <!-- uses javascript function as ajax version breaks validation --> <a4j:jsFunction name="managePanelToggleListener" action="#{controller.processPanel()}" immediate="true" /> </rich:collapsiblePanel> Regards, Stephan