Problem with Navigation Flow when using <p:commandButton>
Posted: 30 Jul 2010, 18:21
When I implement navigation flow with <p:commandButton>, I got an error
However, if I change the <p:commandButton> to <h:commandButton> then it work fine.
Note here that I use "action", not "actionListener", so in theory it should work, unless "action" attribute in <p:commandButton> no longer mean what I think it suppose to mean.
Code: Select all
<p:commandButton action="#{document.createNewFacility}" value="Add New Facility" rendered="#{document.displayFacility}" />
//This should take me to NewFacility.xml
Code: Select all
Unable to find matching navigation case with from-view-id '/NewFacility.xhtml' for action '#{document.createNewFacility}' with outcome 'NEW FACILITY'
Code: Select all
public String createNewFacility(){
return "NEW FACILITY";
}