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

    • Type: Sub-task
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.14, 2.1.8
    • Component/s: General
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: