This content has been marked as final.
Show 4 replies
-
1. Re: h:form wraps rich:togglePanel does not work
nimo22 Apr 17, 2009 2:51 AM (in response to nimo22)I use RF 3.3.0
-
2. Re: h:form wraps rich:togglePanel does not work
nimo22 Apr 17, 2009 3:58 AM (in response to nimo22)found the failure:
I have to wrap my whole content of the facet within a <a4j:outputPanel>:
Look at that:<h:form> <rich:toggleControl for="myToggle" value="toggle"/> <rich:togglePanel id="myToggle" initialState="_2" switchType="client" stateOrder="_1,_2"> <f:facet name="_1">hello</f:facet> <f:facet name="_2"> <!--this content is not rendered--> <a4j:outputPanel> test </a4j:outputPanel> <!--this content IS rendered--> <a4j:outputPanel> test1 </a4j:outputPanel> </rich:togglePanel> </h:form>
So I changed it to this, and now ALL components within the facet are rendered:<h:form> <rich:toggleControl for="myToggle" value="toggle"/> <rich:togglePanel id="myToggle" initialState="_2" switchType="client" stateOrder="_1,_2"> <f:facet name="_1">hello</f:facet> <f:facet name="_2"> <a4j:outputPanel> test test1 </a4j:outputPanel> </rich:togglePanel> </h:form>
strange.. -
3. Re: h:form wraps rich:togglePanel does not work
ilya_shaikovsky Apr 17, 2009 5:12 AM (in response to nimo22)sure.. JSF allows only one child for facets in general.
-
4. Re: h:form wraps rich:togglePanel does not work
nimo22 Apr 17, 2009 5:22 AM (in response to nimo22)okay, good to know, thank you for the information.