RE: from-outcome value

2006-12-21 Thread Beelen, Marco
Anil, There is no way you can specify the name of an outcome just once and use a reference to it both in the java-code of your managed-bean and the navigation-rules in your faces-config.xml. Since your faces-config.xml doesn't get build or compile, there is no way to garantee that the values

RE: from-outcome value

2006-12-21 Thread Anil Kommareddi
PROTECTED] Sent: Thursday, December 21, 2006 4:01 AM To: MyFaces Discussion Subject: RE: from-outcome value Anil, There is no way you can specify the name of an outcome just once and use a reference to it both in the java-code of your managed-bean and the navigation-rules in your faces-config.xml

Re: from-outcome value

2006-12-21 Thread David Delbecq
:[EMAIL PROTECTED] *Sent:* Thursday, December 21, 2006 4:01 AM *To:* MyFaces Discussion *Subject:* RE: from-outcome value Anil, There is no way you can specify the name of an outcome just once and use a reference to it both in the java-code of your managed-bean and the navigation-rules

Re: from-outcome value

2006-12-21 Thread Grigoras Cristinel
:[EMAIL PROTECTED] *Sent:* Thursday, December 21, 2006 4:01 AM *To:* MyFaces Discussion *Subject:* RE: from-outcome value Anil, There is no way you can specify the name of an outcome just once and use a reference to it both in the java-code of your managed-bean and the navigation-rules in your faces

RE: from-outcome value

2006-12-21 Thread Anil Kommareddi
Thanks Cristi, will try that approach and report back. _ From: Grigoras Cristinel [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 9:29 AM To: MyFaces Discussion Subject: Re: from-outcome value Hi, A better solution is to use custom navigation handler and the outcome

RE: from-outcome value

2006-12-21 Thread Anil Kommareddi
[mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 9:18 AM To: MyFaces Discussion Subject: Re: from-outcome value Hi, This all looks to me a bit over-engineering and useless round cycling (defining constants string reference that resolve to constant string reference...) Why could this pack

Re: from-outcome value

2006-12-21 Thread David Delbecq
. -- -- *From:* Beelen, Marco [mailto:[EMAIL PROTECTED] *Sent:* Thursday, December 21, 2006 4:01 AM *To:* MyFaces Discussion *Subject:* RE: from-outcome value Anil, There is no way you can specify the name of an outcome just once and use a reference to it both in the java

Re: from-outcome value

2006-12-21 Thread Jeff Bischoff
To: MyFaces Discussion Subject: Re: from-outcome value Hi, This all looks to me a bit over-engineering and useless round cycling (defining constants string reference that resolve to constant string reference...) Why could this pack of things: from-outcome@OUTCOME.CONTINUE@/from-outcome public String

Re: from-outcome value

2006-12-21 Thread Anil Kommareddi
21, 2006 10:58 AM To: MyFaces Discussion Subject: Re: from-outcome value Sorry, but there are 2 places where typos can happen the .xml file the action method in you case, you have moved the string from action to a property file. Typos in your case can happen in 3 places the .xml (typo in @key

Re: from-outcome value

2006-12-21 Thread Anil Kommareddi
Discussion Subject: Re: from-outcome value David Delbecq wrote: example design public class OutcomeConstants { public static final String OUTCOME_CONTINUE=outcome.continue; } public String someAction(){ ... return OutcomeConstants.OUTCOME_CONTINUE; } navigation rule