4 Replies Latest reply on Sep 11, 2007 9:09 AM by ilya_shaikovsky

    Problem with actionListener attribute in togglePanel

    mpics623

      It seems as though the actionListener (and action) attribute of rich:toggleControl is being ignored.

      in the xhtml
      ...
      <rich:toggleControl for="taskSearchPanel" switchToState="open" value="Search for Tasks" actionListener="#{pageController.taskViewAction}"/>

      ...

      my faces-config.xml
      ...
      <managed-bean>

      Controls the view state of the page
      <managed-bean-name>
      pageController</managed-bean-name>
      <managed-bean-class>
      view.PageController</managed-bean-class>
      <managed-bean-scope>
      session</managed-bean-scope>
      </managed-bean>
      ...

      the code in PageController.java
      ...
      public void taskViewAction(ActionEvent evt) {
      _logger.info("taskViewAction(): begin " + evt.getComponent().getId());
      }
      ...

      If I reference my action method above using actionListener in another JSF component, say commandLink, it fires fine.

      Oh, the page works fine. The panel toggles as expected. It just seems to ignore the action/actionListener attribute.

      Anyone experience this problem?

      Any help would be appreciated!