[ http://issues.apache.org/jira/browse/MYFACES-1157?page=all ]
Jurgen Lust updated MYFACES-1157: --------------------------------- > EvaluationException gets swallowed in ValueBindingImpl and UIInput > ------------------------------------------------------------------ > > Key: MYFACES-1157 > URL: http://issues.apache.org/jira/browse/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 > Assignee: Jurgen Lust > Priority: Minor > Attachments: evaluation-api.patch, evaluation-impl.patch > > 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 again > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira