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

    Rich:togglePanel doubt


      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

          Simpliest example of the server side switching

           <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 name="second">
           <rich:toggleControl value="go to first"></rich:toggleControl>
           <a4j:commandButton reRender="panel" action="#{toggleBean.changeaction}" value="gotosecond"></a4j:commandButton>

           private HtmlTogglePanel panel = new HtmlTogglePanel();
           public String changeaction() {
           return null;