Navigation Rule Outcome from Interface
Hi,
I want to use an interface to hardcoding my outcomes for the navigation rules.
The follwoing example is my INavigationOutcomes:
publicinterface INavigationOutcomes{
publicstaticfinal String SUCCESS_CODE ="sucess";
publicstaticfinal String ERROR_CODE ="error";
}
I want to use those statics (SUCESS_CODE and ERROR_CODE) as my navigation outcomes in the faces-configs.xml
<navigation-rule>
<from-view-id>/views/subscribe.jsp</from-view-id>
<navigation-case>
<from-outcome>sucess</from-outcome>
<to-view-id>/views/sucess.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>error</from-outcome>
<to-view-id>/views/error.jsp</to-view-id>
</navigation-case>
</navigation-rule>
Instead "sucess" and "error", I want to use the values in INavigationOutcomes.SUCESS_CODE and INavigationOutcomes.ERROR_CODE;
Whats the way to do someting like that?
Thanks,
CM

