This content has been marked as final.
Show 2 replies
-
1. Re: Redirection Question
keithnaas Mar 10, 2008 5:09 PM (in response to boki)Something like this?
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib"> <head> <!-- users who are authorized for the homepage are sent to the homepage. unauthorized are logged out and sent back to login since we have to put them somewhere. --> <s:fragment rendered="#{identity.loggedIn}"> <meta http-equiv="Refresh" content="0; URL=#{facesContext.externalContext.requestContextPath}#{org.jboss.seam.core.pages.noConversationViewId}" /> </s:fragment> <s:fragment rendered="#{not identity.loggedIn}"> <meta http-equiv="Refresh" content="0; URL=#{facesContext.externalContext.requestContextPath}#{org.jboss.seam.core.pages.loginViewId}?actionMethod=index.xhtml%3Aidentity.logout&conversationId=#{conversation.id}" /> </s:fragment> </head> <body> <s:link action="#{identity.logout}" view="#{org.jboss.seam.core.pages.loginViewId}"/> </body> </html>
This was for Seam 1.2.1.GA on an app running in production. Things are probably just a little different in Seam 2.
-
2. Re: Redirection Question
boki Mar 10, 2008 10:11 PM (in response to boki)Yes, something like that. I am using 2.0.1-GA. I put something similar into index.xhtml and when invoked, the URL shows the actual EL, not redirecting properly. I am not quite sure whether it has to do with the version or me simply missing something.