• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with navigation rule!  RSS feed

 
John Ulix
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!