| Author |
Problem with navigation rule!
|
John Ulix
Greenhorn
Joined: Sep 29, 2010
Posts: 5
|
|
Hello everybody,
I am new to JSF and I have a very simple question.
I have placed two file in a folder:
- /authentication/login.xhtml
- /authentication/loginFailed.xhtml
and the home page file in another:
/home.xhtml
How could I modify the navigation rule in way that, in case of login successful, the subpath "/authentication/" could disappear? The problem is that, if it remains, I have problems importin css and js files!
Thannk you!
<navigation-rule>
<from-view-id>/authentication/login.xhtml</from-view-id>
<navigation-case>
<from-action>#{login.CheckValidUser}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>home.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{login.CheckValidUser}</from-action>
<from-outcome>fail</from-outcome>
<to-view-id>/authentication/loginFailed.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
|
 |
 |
|
|
subject: Problem with navigation rule!
|
|
|