This content has been marked as final.
Show 2 replies
-
1. Re: js error with togglecontrol in mode client
ilya_shaikovsky Apr 11, 2007 10:24 AM (in response to liuliu)http://jira.jboss.com/jira/browse/RF-90 - thanks for the submit
-
2. Re: js error with togglecontrol in mode client
tim_ph Aug 28, 2007 12:15 PM (in response to liuliu)Please reopen the JIRA ticket. It didn't get fixed on 3.1.0 RC3. I post comment there.
I still see problem in 3.1.0RC3. There are 2 problems:
1/ if stateOrder is not specified, it displays nothing.
2/ if switchToState is defined, click on link will hide everything.<ui:define name="sidebar"> <h:panelGroup> <rich:toggleControl for="application:panel1" value="Show first" switchToState="first"/><br/> <rich:toggleControl for="application:panel1" value="Show second" switchToState="second"/><br/> <rich:toggleControl for="application:panel1" value="Show third" switchToState="third"/><br/> </h:panelGroup> </ui:define> <ui:define name="body"> <h:form id="application"> <h:messages globalOnly="true" styleClass="message"/> <rich:togglePanel id="panel1" switchType="client" initialState="first" stateOrder="first,second,third"> <f:facet name="first"> <rich:panel> <f:facet name="header">First!</f:facet> First Panel </rich:panel> </f:facet> <f:facet name="second"> <rich:panel> <f:facet name="header">Second!</f:facet> Second panel </rich:panel> </f:facet> <f:facet name="third"> <rich:panel> <f:facet name="header">Third!</f:facet> Third panel </rich:panel> </f:facet> </rich:togglePanel> </h:form>