[seam-issues] [JBoss JIRA] (SEAMFACES-214) @ViewConfig after authorization redirect back to original page throws exception

Bernard Labno (JIRA) jira-events at lists.jboss.org
Wed Apr 17 08:52:54 EDT 2013


    [ https://issues.jboss.org/browse/SEAMFACES-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768043#comment-12768043 ] 

Bernard Labno commented on SEAMFACES-214:
-----------------------------------------

Why don't we observe org.jboss.seam.security.events.LoggedInEvent instead of PreNavigateEvent?

Here's my workaround:
{code:lang=java}
@Specializes
public class QwestmarkLoginListener extends LoginListener {

    public void redirectAfterLoginIfNeeded(@Observes LoggedInEvent event)
    {
        final FacesContext facesContext = FacesContext.getCurrentInstance();
        Map<String, Object> sessionMap = facesContext.getExternalContext().getSessionMap();
        super.observePostLoginEvent(new PostLoginEvent(facesContext, sessionMap));
    }

    @Override
    public void observePostLoginEvent(@Observes PostLoginEvent event)
    {
//        We need to block bahavior of superclass
    }
}
{code}
                
> @ViewConfig after authorization redirect back to original page throws exception
> -------------------------------------------------------------------------------
>
>                 Key: SEAMFACES-214
>                 URL: https://issues.jboss.org/browse/SEAMFACES-214
>             Project: Seam Faces
>          Issue Type: Bug
>    Affects Versions: 3.1.0.Beta3
>         Environment: Jboss 7.0.2
>            Reporter: christoph langer
>
> See 
> http://seamframework.org/Community/ViewScopeRedirectAfterLoginErrorIllegalStateException

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list