myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heath Borders-Wing (JIRA)" <incubator-...@incubator.apache.org>
Subject [jira] Created: (MYFACES-88) HtmlSelectOneListbox provides the wrong default value for size
Date Tue, 25 Jan 2005 20:29:23 GMT
HtmlSelectOneListbox provides the wrong default value for size
--------------------------------------------------------------

         Key: MYFACES-88
         URL: http://issues.apache.org/jira/browse/MYFACES-88
     Project: MyFaces
        Type: Bug
    Versions: 1.0.8 beta    
 Environment: WSAD 5.1.2, IE6
    Reporter: Heath Borders-Wing


According to Sun's TLD, the <h:selectOneListbox /> tag should default the rendered HTML
<select> tag's size attribute to the number of SelectItem children.  Currently, however,
if the size attribute is not specified on the tag, HtmlSelectOneListbox returns Integer.MIN_VALUE
as a default.  This causes problems in the renderer, as it only changes the size attribute
to the number of SelectItem children if getSize() returns 0.

Thus, the DEFAULT_SIZE constant on HtmlSelectOneListbox should be set to 0.

Attached is a fix.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message