Need new exception wrapper to know whether JSF needs to report the exception ----------------------------------------------------------------------------
Key: TRINIDAD-2038 URL: https://issues.apache.org/jira/browse/TRINIDAD-2038 Project: MyFaces Trinidad Issue Type: Bug Affects Versions: 2.0.0-beta-1 Reporter: hongbing wang There are cases that exception is thrown in update model phase, like model layer validation failure, by model outside of JSF and the exception is also handled and reported outside of JSF. To avoid the component's local value getting reset to null, JSF needs to be notified. The proposed solution is to re-throw a wrappered exception to JSF and also let JSF to know whether it needs to report the exception. Here is the interface of the wrapper: package org.apache.myfaces.trinidad.context; /** * Interface for exceptions that tells whether the exception needs to be reported. * If an exception is thrown during JSF lifycycle and aleady reported, then it should let * JSF know not to report it again. * */ public interface ExceptionWrapper { /** * Return false if JSF doesn't need to report this exception, otherwise ture. */ public boolean isReportingMessage(); } -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira