Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3053 Improve error reporting and logging
  3. MYFACES-3503

Improve exception handling for f:setPropertyActionListener and EL coercion

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.14, 2.1.8
    • General
    • None

    Description

      <f:setPropertyActionListener value="#

      {10}

      " target=#

      {bean.booleanProperty}

      /> leads to exception:

      Cannot convert 10 of type class java.long.Long to class java.lang.Boolean

      but without line/column (without javax.faces.view.Location), because expressionFactory.coerceToType is not oam-LocationAware operation.

      See attached patch for details.

      Attachments

        1. MYFACES-3503.patch
          3 kB
          Martin Kočí

        Activity

          People

            markoc50 Martin Kočí
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: