This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes how to redirect to current page after login in SEAM? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "how to redirect to current page after login in SEAM?" Watch "how to redirect to current page after login in SEAM?" New topic
Author

how to redirect to current page after login in SEAM?

Anjali Aggarwal
Greenhorn

Joined: Aug 06, 2011
Posts: 6
Hi,

How should i redirect to the current page after login authentication in SEAM?

I have already added the following code to the components.xml :

<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}"/>
</event>

<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}"/>
</event>

but it doesn't seem to work. Any other way to solve this issue?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to redirect to current page after login in SEAM?