myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (MYFACES-3256) CommonPropertyUtils assumes all its managed HTML attributes hold string values
Date Tue, 02 Aug 2011 16:37:28 GMT
CommonPropertyUtils assumes all its managed HTML attributes hold string values
------------------------------------------------------------------------------

                 Key: MYFACES-3256
                 URL: https://issues.apache.org/jira/browse/MYFACES-3256
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.0.8-SNAPSHOT, 2.1.2-SNAPSHOT
            Reporter: Matt Benson
            Priority: Blocker


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message