This content has been marked as final.
Show 2 replies
-
1. Re: Force redirect after login
sjmenden Aug 22, 2008 12:50 AM (in response to fillo)One way to do this would be to extend/override the built in Seam component: org.jboss.seam.faces.Redirect which is responsible for:
<event type="org.jboss.seam.security.notLoggedIn"> <action execute="#{redirect.captureCurrentView}"/> </event> <event type="org.jboss.seam.security.loginSuccessful"> <action execute="#{redirect.returnToCapturedView}"/> </event>
And specifically override and change the logic in:
public void execute() { FacesManager.instance().redirect(viewId, parameters, conversationPropagationEnabled); }
To check the roles and return to the appropriate viewId, that is if you want to retain the return to captured view functionality.
-
2. Re: Force redirect after login
fillo Aug 22, 2008 1:09 PM (in response to fillo)Thanks a lot, that´s exactly what I was looking for!!!!