1 Reply Latest reply on Mar 10, 2007 3:57 PM by sergeysmirnov

    rich:togglePanel

      I am trying to use the rich:togglePanel. I started by just using the example from the demos. If I surround the code with a form it does not render at all. If I remove the form it throws an EnclosingFormRequiredException:. So I assume the form is required but I am not sure why it does not render with the form? Below is my code.

      <rich:togglePanel id="skin_chooser1" value="testToggle" switchType="ajax" stateOrder="s,b">
       <f:facet name="s">
       <h:panelGrid columns="1">
       <h:outputText value="BlueSky" />
       <h:outputText value="Classic" />
       <rich:toggleControl for="skin_chooser1" value="more »" />
       </h:panelGrid>
       </f:facet>
       <f:facet name="b">
       <h:panelGrid columns="1">
       <h:outputText value="BlueSky" />
       <h:outputText value="Classic" />
       <h:outputText value="Ruby" />
       <h:outputText value="Wine" />
       <h:outputText value="DeepMarine" />
       <h:outputText value="EmeraldTown" />
       <h:outputText value="Sakura" />
       <h:outputText value="Default" />
       <rich:toggleControl for="skin_chooser1" value="« less" />
       </h:panelGrid>
       </f:facet>
      </rich:togglePanel>


        • 1. Re: rich:togglePanel

          the form is required if the switchType is "ajax" or "server"

          The form might not be render if the form was the direct child of the panel. This is only one guess I have without knowing what was around.