Reply To: Split: PrettyFaces + Anchor with JavaScript window.location redirect?

Splash Forums PrettyFaces Users Split: PrettyFaces + Anchor with JavaScript window.location redirect? Reply To: Split: PrettyFaces + Anchor with JavaScript window.location redirect?

#25546

ravindra
Participant

Hi ,

Thanks a lot for giving replay. it was great help to me.

One more issues

am buliding url using javascript

ex: window.location.assign(“http://localhost:8080/Project/pages/viewDetails.xhtml?name=ravindra & company=’xyz’ “) ;

am configure pretty faces like this

<url-mapping >
<pattern value=”/details/#{name}/#{company}” />
<view-id value=”/pages/viewDetails.xhtml” />
</url-mapping>

but am getting in browser like this http://localhost:8080/Project/pages/viewDetails.xhtml?name=ravindra &company=xyz

but actually i need like http://localhost:8080/Project/details/ravindra/xyz

Please help me on this it will great-ful to me .

Regards
Ravindra

  • This reply was modified 8 years, 1 month ago by  ravindra.