3 Replies Latest reply on Aug 26, 2008 9:59 AM by Alex Tserbo

    Problem with simpleTogglePanel

    Anton Lisovenko Newbie

      The saving of states of simpleTogglePanel doen't work correctly. This example:

      http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/faq/faq.html#SimpleTogglePanelPanelMenuState

      And matching mine:

      <rich:simpleTogglePanel switchType="client"
       label="#{report_bundle.generalInfo}"
       opened="#{orderReportDetailsBean.isPanelOpened}">
       <a4j:support event="onexpand"
       actionListener="#{orderReportDetailsBean.panelOpened}" />
      
       <a4j:support event="oncollapse"
       actionListener="#{orderReportDetailsBean.panelClosed}" />


      seem to work incorrectly. The action listener is called only at the first click (the method is called), but all next clicks don't produce action events (allthough the request is sent and processed at each click). Moreover, after refreshing the page the panel doesn't produce actions either - I have to restart session to get the first click produce action again..