I use the following code to redirect to my home page on login... now i want to go a step further and add a logic where it redirects to different page based on user type.
for eg: if a user type is employee then i should redirect to employeehome.xhtml and so on ... is this possible ?
<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.2.xsd">
<navigation from-action="#{identity.login}">
<rule if="#{identity.loggedIn}">
<redirect view-id="/Home.xhtml" />
</rule>
</navigation>