Easy redirection to login page and back.
----------------------------------------
Key: JBSEAM-773
URL:
http://jira.jboss.com/jira/browse/JBSEAM-773
Project: JBoss Seam
Issue Type: Feature Request
Reporter: Gavin King
Assigned To: Gavin King
Priority: Critical
Fix For: 1.1.6.GA
Something like this would work:
<page view-id="/login.xhtml" switch="disabled">
<navigation from-action="#{identity.login}">
<rule if="#{identity.loggedIn}">
<end-conversation before-redirect="true"/>
<redirect view-id="#{conversation.parentViewId}"/>
</rule>
</navigation>
</page>
<exception class="org.jboss.seam.core.NotLoggedInException">
<begin-conversation nested="true"/>
<redirect view-id="/login.xhtml"/>
</exception>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira