Re: from-outcome value

2006-12-21 Thread Anil Kommareddi
6 AM To: MyFaces 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(){ > ...

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 Jeff Bischoff
NTINUE@ /somepage.jsp and the Outcomes properties file will contain: OUTCOME.CONTINUE=continue While this works, if anyone has a more elegant solution, I would love to see it. Thanks for your response. - Anil. -------------- --

Re: from-outcome value

2006-12-21 Thread David Delbecq
t;> >> and the Outcomes properties file will contain: >> >> OUTCOME.CONTINUE=continue >> >> While this works, if anyone has a more elegant solution, I would love >> to see it. >> >> Thanks for your response. >> - Anil. >> >&g

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 of

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 Grigoras Cristinel
e While this works, if anyone has a more elegant solution, I would love to see it. Thanks for your response. - Anil. *From:* Beelen, Marco [mailto:[EMAIL PROTECTED] *Sent:* Thursday, December 21, 2006 4:01 AM *To:* MyFaces

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

RE: from-outcome value

2006-12-21 Thread Anil Kommareddi
: 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. Since your faces-config.xml doesn't get build or compile, there is no w

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 used