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.
Unable to reproduce on the latest snapshots with JSF 1.2_02 and facelets 1.1.12