myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: Exception Handling
Date Fri, 15 Dec 2006 06:23:35 GMT
Did you try to decorate the default ActionListener? does that help anything?

regards,

Martin

On 12/14/06, Stefan Neumann <stefan.neumann@freiheit.com> wrote:
> OK, I know too much unnecessary information :-D
>
> I kept trying and I solved some exceptions. I can handle exceptions in
> actionListener methods by the custom FacesServlet way and I can handle
> any EvaluationExceptions with an custom PropertyResolver delegater.
>
> But I really cannot handle action method exceptions. I've already seen,
> that the "common" way should be like
>
> public string myAction(){
>     try{
>         //do something
>         return "success";
>     }catch (Throwable e){
>         return "error";
>     }
> }
>
> Is there a diffrent approach to handle these exceptions in one single
> place. It would keep things maintainable, if you want to keep track of
> these errors and not only redirect to another page.
>
> Thanks in advance
>
> Stefan
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message