This content has been marked as final.
Show 1 reply
-
1. Re: Login Redirection
vasana May 12, 2008 10:44 AM (in response to vikram.vikram.chhetry.gmail.com)you can add a xml file like login.page.xml do a similar check like
<?xml version="1.0" encoding="UTF-8"?> <page xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd"> <navigation from-action="#{identity.login}"> <rule if="#{identity.loggedIn and identity.hasRole("admin")}"> <redirect view-id="/adminhome.xhtml"/> </rule> </navigation> </page>