myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <lu4...@gmail.com>
Subject Re: [Core 2.0] backwards compatible exception handling
Date Thu, 17 Dec 2009 23:37:17 GMT
Hi

I think you're right. Makes sense deprecate/remove
org.apache.myfaces.ERROR_HANDLING. The standard solution to error handling
takes precedence over myfaces hack.

regards

Leonardo Uribe

2009/12/17 Jakob Korherr <jakob.korherr@gmail.com>

> Hi,
>
> I am currently working on the Exception handling mechanism of MyFaces 2.0
> and I was thinking how we should provide backwards compatibility to the
> situation in 1.2.
>
> I came up with the following solution for the backwards compatibility:
>
> - org.apache.myfaces.ERROR_HANDLING will be dismissed by MyFaces 2.0,
> because we will always handle the Exception with the ExceptionHandler (the
> spec tells us to).
> - org.apache.myfaces.ERROR_HANDLER can still be used, but only in
> conjunction with javax.faces.webapp.PreJsf2ExceptionHandlerFactory. However,
> only the method handleException(FacesContext context, Exception e) has to be
> provided.
>
> Any comments or thoughts about this solution? Any better ideas?
>
> Regards,
>
> Jakob Korherr
>

Mime
View raw message