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

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment