3 Replies Latest reply on Feb 25, 2009 5:35 AM by Nick Belaevski


    nimo stephan Master

      I have a rich:togglePanel and a toggleControl which works.

      <rich:toggleControl for="Toggle" value="My Toggle"/>
      <rich:togglePanel id="Toggle" initialState="hide" switchType="client" stateOrder="hide,show">
      <f:facet name="hide">...</f:facet>
      <f:facet name="show">...</f:facet>

      Now, I want to add a additional toggleControl for the same togglePanel into my menuItem:

      <rich:menuItem value="Toggle" ajaxSingle="true" reRender="..">
      <rich:toggleControl for="myTogglePanel" switchToState="hideState"/>

      So you see, I want to toggle my Panel when clicking the menuItem Toggle.
      How can I do that without using actionparam? Only via client-side.