[
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
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues