This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

How to include errorpage in xhtml page.

 
shree lk
Greenhorn
Posts: 14
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,

I want to include errorPage in .xtml, as done in jsp i.e inclusion of error page using "iserrorPage" and "errorPage". How it can be done in xhtml page.

Thanks in advance.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18161
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
You cannot use a JSF View as a JSP-type error page. That's because the error page mechanism works by internal access to webapp resources and doesn't invoke the FacesServet (without which no JSF View will properly function).

ErrorPages are not a good choice for ordinary application error display. For that, it's better just to use the JSF page navigator to route to a JSF error page, which is just an ordinary JSF page that displays whatever error messages and advice you want.

Use the J2EE error pages to customize the display that the user gets when a bug causes normal JSF processing to fail. Code them as ordinary JSPs that link back to the mainstream JSF views.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
    Bookmark Topic Watch Topic
  • New Topic