1 Reply Latest reply on May 31, 2007 6:52 AM by ilya_shaikovsky

    "action" with <a4j:commandButton> is not working?

    vh

      I want to use cancel button to go back to the first wizard page. But I can only use a fixed string for "action", not a method to return the string.

      If I do this, it doesn't work.

      <a4j:commandButton
      action="#{desktopBean.test}"
      value="#{bundle.Cancel}"
      reRender="wizard"/>

      in the bean:
      ...
      public String test() {
      System.out.println("----- test is called");
      return "cancel";
      }

      But if I do this, it works:
      <a4j:commandButton
      action="cancel"
      value="#{bundle.Cancel}"
      reRender="wizard"/>

      The action function does get called. But the navigation didn't happen.