[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3507) Allow for navigation rules to take effect before the view is displayed

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Sat Oct 4 19:00:23 EDT 2008


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


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

        



More information about the seam-issues mailing list