This content has been marked as final.
Show 2 replies
-
1. Re: Conditional navigation in pages.xml
christian.bauer May 11, 2007 3:59 AM (in response to gmarcus)You can't, "null" outcome means re-render.
-
2. Re: Conditional navigation in pages.xml
gmarcus May 11, 2007 1:41 PM (in response to gmarcus)"christian.bauer@jboss.com" wrote:
You can't, "null" outcome means re-render.
I was hoping that I could avoid having to put additional outcomes or view logic inside my business layer call to account.validateEmail() (which is a SFSB)
It made sense to me that I should be able to redirect to a view in case of null. Even the Seam Reference Documentation shows an example of this in Section 5.1.1.2:
If you want to perform navigation when a null outcome occurs, use the following form instead:<page view-id="/editDocument.xhtml"> <navigation from-action="#{documentEditor.update}"> <render view-id="/viewDocument.xhtml"/> </navigation> </page>
I thought you can define multiple rules with a naviagation element. How do I specify multiple rules in this case to go to one view on outcome of "success" and another view for anything else?
Glenn