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

CommonPropertyUtils assumes all its managed HTML attributes hold string values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.8-SNAPSHOT, 2.1.2-SNAPSHOT
    • 2.0.8, 2.1.2
    • None
    • None

    Description

      I encountered the ClassCastException due to Integer vs. String on h:input @maxlength, which is defined at http://download.oracle.com/docs/cd/E17802_01/j2ee/javaee/javaserverfaces/2.0/docs/pdldocs/facelets/h/inputText.html as (must evaluate to int). I would presume the same for @size (int) and @readonly (boolean). Perhaps naively, it would seem that simply removing the String cast and using Object in CommonPropertyUtils#renderHtmlStringAttribute() (potentially renaming this method in the process) would solve the issue.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              mbenson Matthew Jason Benson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: