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
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
:[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
:[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
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
[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
.
--
--
*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
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
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
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
10 matches
Mail list logo