aspose file tools
The moose likes JSF and the fly likes Problem with navigation rule! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Problem with navigation rule!" Watch "Problem with navigation rule!" New topic
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>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem with navigation rule!
 
Similar Threads
How to know the outcome of backing bean method
Redirect and navigation problem
JSF <h:commandButton action> not working
Spring Security 3 - cant't access secured page
jsessionid in URL