It depends on when the exception will occur. If before the render response, then it will indeed be skipped. By default you will see a HTTP 500 error. Unless you've filtered the exceptions in web.xml or created kind of an "ExceptionFilter" which redirects exceptions to a standard error page.
Play somewhat with it by simply issuing a fake exception.
<h:form><h:commandButton value="foo" action="#{myBean.action}" /></h:form>
public void action() {
throw new RuntimeException("foo");
}
While uploading a file more than 10 mb it throws Exception at server side coz i configured filter in web.xml for 10 mb. and i'm putting one
outputMessage its value associated with HtmlOutputMessage in jsf.
When exception happens im putting in catch like
HtmlOutputText errorMessage
catch(Exception e)
{
errorMessage.setValue("file not uploaded");
errorMessage.setRendered(true);
}
but errorMessage not displayed in UI cozException caught at filter level
how can i proceed.
Thanx