This content has been marked as final.
Show 1 reply
-
1. Re: Rich:togglePanel doubt
ilya_shaikovsky Nov 22, 2007 4:36 AM (in response to icai)Simpliest example of the server side switching
<h:form> <rich:togglePanel switchType="client" stateOrder="first, second" initialState="first" binding="#{toggleBean.panel}" id="panel"> <f:facet name="first"> <rich:toggleControl value="go to second"></rich:toggleControl> </f:facet> <f:facet name="second"> <rich:toggleControl value="go to first"></rich:toggleControl> </f:facet> </rich:togglePanel> <a4j:commandButton reRender="panel" action="#{toggleBean.changeaction}" value="gotosecond"></a4j:commandButton> </h:form>
private HtmlTogglePanel panel = new HtmlTogglePanel(); public String changeaction() { panel.setValue("second"); return null; }