• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF faces-redirect not working

 
Prithvi Sehgal
Ranch Hand
Posts: 774
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I know that JSF shows one page over the other and if we want to see the current page we have to append
faces-redirect either in faces-config or at the end of URL. For example in my application, i have a link and i
append faces-redirect in such away



Now i have done it in many links but it doesn't seem to be working at all. It shows something like this always


Any pointers why it is happening this way?

BR,
 
Cesar Loachamin
Ranch Hand
Posts: 90
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prithvi
i have a link and i append faces-redirect
Do you have a link <a> or a commandLink???, If you want to use a redirect, you can append the faces-redirect = true to a outcome in the action attribute of a commandLink or commandButton, when the navigation handler not found a outcome matching a navigation case, it'll try to find a page append the extension and the path of the current page, so an example of use it could be:

Regards
Cesar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic