4 Replies Latest reply on Apr 17, 2009 5:22 AM by nimo stephan

    h:form wraps rich:togglePanel does not work

    nimo stephan Master

      I have a rich:togglePanel:

      This works fine:

      <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">
       <h:form>
       <h:commandButton .../>
       </h:form>
      </rich:togglePanel>



      But I need the form around my rich:togglePanel! So I wrap a form around my togglePanel and delete the form inside the facet:

      
      <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">
       <h:commandButton .../>
      </rich:togglePanel>
      </h:form>
      


      But now, the facets of my togglePanel are not rendered anymore and the toggleControl does not work.

      But I need the form around my togglePanel. How can I do that??