how i do to makes that commandButton works without java code in pageflow
<h:commandButton id="cancel" value="#{messages.cancel}" action="#{actionName.cancel}"/>
and in java
public String cancel(){
return "cancel";
}
this works, but
<h:commandButton id="cancel" value="#{messages.cancel}" action="cancel"/>
dosen't works.. any idea?
Post the pageflow,
<h:commandButton id="cancel" value="#{messages.cancel}" action="cancel"/>should work.