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

[1483 byte] By [Code_Monkeya] at [2007-10-2 5:41:11]
# 1
Please reference follow page... http://www.horstmann.com/corejsf/
samwonga at 2007-7-16 1:51:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...