This content has been marked as final.
Show 2 replies
-
1. Re: Seam 3 - Redirect user to a new page
rcbandit Nov 18, 2011 10:24 AM (in response to rcbandit)I tried with this faces-config.xml file
<?xml version="1.0"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
<navigation-rule>
<from-view-id>/home.jsf</from-view-id>
<navigation-case>
<from-action>#{identity.login}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/main.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<navigation-case>
<from-action>#{identity.login}</from-action>
<from-outcome>failure</from-outcome>
<to-view-id>/home.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
I have a error somewhere because it does not work. -
2. Re: Seam 3 - Redirect user to a new page
lightguard Nov 18, 2011 1:09 PM (in response to rcbandit)Take a look at ViewConfig in Seam Faces, there's an example that should demonstrate this.