[jboss-jira] [JBoss JIRA] (AS7-3332) c:catch tag apparently doesn't work when using facelets.

Stan Silvert (JIRA) jira-events at lists.jboss.org
Mon Oct 1 13:20:03 EDT 2012


    [ https://issues.jboss.org/browse/AS7-3332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722994#comment-12722994 ] 

Stan Silvert commented on AS7-3332:
-----------------------------------

Hi Alexander,

I went back and looked at this a little more.  In searching the web, I could only find one example besides yours where someone tried to use <c:catch> with Facelets.  They asked a question about it and got an answer from Facelets founder Jacob Hookum.  Perhaps this gives you the advice you were looking for:
http://markmail.org/message/jmha24pk2zbvavlc

There are other ways to handle exceptions, such as the ExceptionHandler class:
http://docs.oracle.com/cd/E17802_01/j2ee/javaee/javaserverfaces/2.0/docs/api/javax/faces/context/ExceptionHandler.html

Since there's really not much interest in <c:catch>, I'm not going to spend more time researching this further.  If you look into the Mojarra code and you find a bug you can always report it to the Mojarra team at http://java.net/jira/browse/JAVASERVERFACES.

Stan
                
> c:catch tag apparently doesn't work when using facelets.
> --------------------------------------------------------
>
>                 Key: AS7-3332
>                 URL: https://issues.jboss.org/browse/AS7-3332
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 7.0.2.Final
>         Environment: JBoss application server running on a Windows 7 platform, inside eclipse platform.
>            Reporter: Alexander Picoli
>            Assignee: Stan Silvert
>              Labels: c:catch, catch, facelets, jsf, jstl
>         Attachments: Boom.java, ccatchdemo.xhtml, ccatchthrowsexceptionanyway.png
>
>
> When using the JSTL c:catch tag inside JSP pages, and I access an EL expression that throws a custom exception, the tag works fine.
> But when I use it with facelets, the c:catch is ignored and a HTTP500 message is sent to the client.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list