2 Replies Latest reply on Oct 3, 2007 2:20 PM by terryb

    Action method with parameter and JSF Navigation

    terryb

      When a JSF page has action method with parameter, is it possible to use that method in pages.xml for navigation rule?

      myjsf.xhtml:
      ...
      ...

      <h:commandButton value="Change Password" action="#{orgUserAction.changePassword(identity.username)}"/>

      This following navigation rule does not fire.

      myjsf.page.xml:
      [page login-required="true"]
      [navigation from-action="#{orgUserAction.changePassword}"]
      [rule if="#{orgUserAction.passwordChanged}"]
      [redirect view-id="/member/password-changed.xhtml"/]
      [/rule]
      [/navigation]
      [/page]