This content has been marked as final.
Show 3 replies
-
1. Re: Rule redirect to captured view
shane.bryzak May 1, 2008 2:15 AM (in response to lcurros)You could try this:
<page view-id="/prelogin.xhtml" action="#{bean.action()}"> <navigation> <rule if="#{bean.condition}"> <redirect view-id="#{redirect.viewId}"/> </rule> </navigation> </page>
-
2. Re: Rule redirect to captured view
lcurros May 5, 2008 9:18 AM (in response to lcurros)Thanks Shane!
In most of cases this solution works perfectly. My problem is that I want to maintain the initial parameters (of captured view), and using this
<redirect view-id="#{redirect.viewId}"/>
I loose my parameters.
-
3. Re: Rule redirect to captured view
lcurros May 5, 2008 6:43 PM (in response to lcurros)I solve the problem adding (inside action() method) the next line:
Redirect.instance().returnToCapturedView();
Is this the only way to solve it?or can I write something in pages.xml to redirect to captured view?