RenderResponse

If Exception occured in backing bean then still the page rendered back to the client ? or it stops rendereing the page ?
[127 byte] By [veerjaa] at [2007-11-27 2:26:58]
# 1

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");

}

BalusCa at 2007-7-12 2:37:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

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

veerjaa at 2007-7-12 2:37:05 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...