Re: Can I use pretty faces URL rewrite in existing JSF-2.0 and Richfaces-3.3.3 app?

Splash Forums PrettyFaces Users Can I use pretty faces URL rewrite in existing JSF-2.0 and Richfaces-3.3.3 app? Re: Can I use pretty faces URL rewrite in existing JSF-2.0 and Richfaces-3.3.3 app?

#23026

Carolina
Member

Christian,

I have found why its redirecting to original URL. I have added action tag in url-mapping as below.

Once i have remove action tag, its working.

However when I type ‘ http://localhost:8080/b2c/Login ‘ in browser the URL remain in browser without changing to original URL.

But when the Login button click its going to login page with original URL only (in browser it showing ‘ http://localhost:8080/b2c/pages/hotel/hotelLoginNormal.xhtml ‘) instead of ‘ http://localhost:8080/b2c/Login

I need to keep Navigation Rule in face-config.xml or not.

Please let me know how should it work on click of button?

<url-mapping id=”hotelloginNormal”>

<pattern value=”/Login” />

<view-id value=”/pages/hotel/hotelLoginNormal.xhtml” />

<action>#{loginBean.loginClick}</action>

</url-mapping>