[JBoss Seam] - problem with exception handling
by X490812
I put the following in pages.xml to test exception handling:
| .
| .<exception>
| <end-conversation/>
| <redirect view-id="/genericErrorPage.xhtml">
|
| </redirect>
| </exception>
|
| </pages>
|
Here is genericErrorPage.xhtml
| body>
| <h:messages
| styleClass="message"
| id="globalMessages" />
| </body>
|
Here is where the exception is thrown in the backing bean:
| .
| .
| @Factory("caseList")
| public List<Tblcase> getCaseList() throws Exception {
| if (true)
| {
| facesMessages.add("TeSTMESSAGE1");
| throw new Exception("test");
| }
|
facesMessages was @In injected into this statefull session bean
The genericErroPage.xhtml does not come up, instead I get this
| SEVERE: Error Rendering View[/caselist.xhtml]
| java.lang.RuntimeException: exception invoking: getCaseList
| at or
| .
| .
|
|
|
Why no erro page?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109494#4109494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109494
17 years, 1 month