[
https://jira.jboss.org/jira/browse/JBSEAM-3507?page=com.atlassian.jira.pl...
]
Dan Allen commented on JBSEAM-3507:
-----------------------------------
Today you would get this behavior by configuring a page action. Then the navigation rules
will be fired after the page action executes based on its signature.
...but the idea of immediate navigation does make sense. Like page actions, these are
conditional page navigation. Obviously, the from-action would never apply in this case.
Would they be executed before or after page actions? There is some complexity to work out
here.
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