[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-773) Easy redirection to login page and back.
Darryl Smith (JIRA)
jira-events at jboss.com
Wed Feb 7 22:04:29 EST 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-773?page=comments#action_12352603 ]
Darryl Smith commented on JBSEAM-773:
-------------------------------------
instead of
<security:identity authenticate-method="#{authenticator.authenticate}"/>
<event type="org.jboss.seam.notLoggedIn">
<action expression="#{redirect.captureCurrentView}"/>
</event>
<event type="org.jboss.seam.postAuthenticate">
<action expression="#{redirect.returnToCapturedView}"/>
</event>
why not just
<security:identity authenticate-method="#{authenticator.authenticate}" resumeRequestAfterLogin="true"/>
The less configuration the better
> 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
More information about the seam-issues
mailing list