You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 11 Members of 4501 |
| Forum: Seam Users |
30. Apr 2008, 18:53 CET | Link |
Hello again! I'm working with jboss seam 2.0.1 and Jboss 4.2.2.
How can I redirect to capturedView inside a rule definition in pages.xml? Something like this:
<page view-id="/prelogin.xhtml" action="#{bean.action()}">
<navigation>
<rule if="#{bean.condition}">
<redirectToCapturedView/>
</rule>
</navigation>
</page>
Thanks in advance!
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>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.
I solve the problem adding (inside action() method) the next line:
Is this the only way to solve it?or can I write something in pages.xml to redirect to captured view?