myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jurgen Lust (JIRA)" <>
Subject [jira] Created: (MYFACES-1157) EvaluationException gets swallowed in ValueBindingImpl and UIInput
Date Sun, 26 Feb 2006 15:10:54 GMT
EvaluationException gets swallowed in ValueBindingImpl and UIInput

         Key: MYFACES-1157
     Project: MyFaces Core
        Type: Improvement
  Components: General  
    Versions: 1.1.1, 1.1.2-SNAPSHOT, 1.1.2    
 Environment: all
    Reporter: Jurgen Lust
 Assigned to: Jurgen Lust 
    Priority: Minor

During model update, when an Exception is thrown in the setValue method of the PropertyResolverImpl,
it is wrapped in an EvaluationException, which is then caught in the ValueBindingImpl, and
again wrapped in another EvaluationException, which is finally caught in the UIInput, where
a generic error FacesMessage is rendered to the browser. This could be cleaner, and differs
from the way it is done in the Sun RI. The Sun RI does the following:

1. Exception is caught by PropertyResolverImpl, wrapped in an EvaluationException, and thrown
2. ValueBindingImpl catches the EvaluationException and rethrows it unchanged
3. UIInput catches the EvaluationException and creates an error FacesMessage containing the
EvaluationException.getMessage() if it's not null, otherwise a generic error message.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message