[jbossseam-issues] [JBoss JIRA] Updated: (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:04:20 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBSEAM-3507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas updated JBSEAM-3507:
-----------------------------------

    Attachment: seam-immediate-navigation-v1.diff


A patch that adds an immediate attribute to <navigation> that allows the rule to be run before the page actions are run.



> 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

        



More information about the seam-issues mailing list