Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2615

Conversion errors should add a FacesMessage instead of throwing a FacesException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-3
    • 2.0.0
    • JSR-314
    • None

    Description

      While working on MYFACES-2614 I ran into the problem that, if a conversion fails, the error page is displayed with the related ConverterException. This should not happen, instead a FacesMessage describing the conversion error should be added to the FacesContext.

      See section 2.2.3 Process Validations (or also section 2.2.2. Apply Request Values for components with immediate set to true) of the JSF 2.0 spec: "Conversions and Validations that failed will have caused messages to be enqueued via calls to addMessage()...".

      Attachments

        1. MYFACES-2615.patch
          7 kB
          Jakob Korherr

        Activity

          People

            jakobkorherr Jakob Korherr
            jakobkorherr Jakob Korherr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: