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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta-3
    • Fix Version/s: 2.0.0
    • Component/s: JSR-314
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: