1 Reply Latest reply on Nov 22, 2007 4:36 AM by Ilya Shaikovsky

    Rich:togglePanel doubt

    rachana patel Newbie

      Hi Everyone,

      I was wondering whether it is possible to toggle to a different state from the managed bean. Also rich:togglePanel has switchType="client" .

      <rich:togglePanel id="testToggle" switchType="client" stateOrder="info,pipeline" binding="#{backing_CustSearchBean.togglePanel1}">


      I have this requiremebnt where other than toggling through toggle control in jsp, I need the page to toggle when one datable row in pipeline state is hit.

      Thanks in advance!


        • 1. Re: Rich:togglePanel doubt
          Ilya Shaikovsky Master

          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;
           }