Hi List,
I've successfully created an error page when an http error (e g. 404)
occurs. But when an exception will be raised, I only see the standard
myFaces error page. Do I miss something in the web.xml definitions.
Here my web.xml error page definitions
<!-- Pages that will be displayed in case of an specific error -->
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/aisdcl/pages/general/errorpages/exception.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/aisdcl/pages/general/errorpages/404.jsp</location>
</error-page>
Do I have to insert a context param which defines an alternate error
handler or miss I something in here.
I've tried to produce an exception in my controller by this way.
/**
* This method is for test purposes only. It has no useful content
and will
* always fail with an Nullpointerexception
* @return
*/
public String getTest(){
Object fakeObj= null;
return fakeObj.toString();
}
As I said above, the standard myfaces error page will displayed not my own.
Thx for suggestions
Hannes