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

        

Reply via email to