[
https://jira.jboss.org/jira/browse/JBSEAM-3507?page=com.atlassian.jira.pl...
]
Stuart Douglas commented on JBSEAM-3507:
----------------------------------------
They should be executed before page actions, otherwise they do not add anything that you
cannot already get using from-action. Even though you can already achieve the same effect
using dummy page actions I think that questions such as 'How do you prevent a logged
on user from seeing the login page' crop up often enough on the forums that it is
worth adding an explicit way of accomplishing this.
Another use case for these is dummy views, which have no actual .xhtml file, just
navigation logic, for instance i have used "/parent.xhtml" to refer to the
previous view in a conversation, so the 'Done" button always returns you to the
correct screen.
Allow for navigation rules to take effect before the view is
displayed
----------------------------------------------------------------------
Key: JBSEAM-3507
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3507
Project: Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 2.1.0.CR1
Reporter: Stuart Douglas
Attachments: seam-immediate-navigation-v1.diff
Allow the developer the specify navigation rules that are evaluated before the view is
rendered.
For example, say we do not want logged in users to be able to view the login page, we
cannot do this:
<navigation>
<rule if="#{identity.loggedIn}">
<redirect view-id="/main.xhtml"/>
</rule>
</navigation>
Instead you must either use a page action that contains the navigation logic, or specify
a dummy page action such as ''.toString()
and use this action as the from-action in your navigation rules. I propose we add an
'immediate' attribute to the navigation attribute that
specifies that this action is evaluated before page actions are run.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira