You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Heath Borders-Wing (JIRA)" <in...@incubator.apache.org> on 2005/01/25 21:40:17 UTC

[jira] Updated: (MYFACES-88) HtmlSelectOneListbox provides the wrong default value for size

     [ http://issues.apache.org/jira/browse/MYFACES-88?page=history ]

Heath Borders-Wing updated MYFACES-88:
--------------------------------------

    Attachment: HtmlSelectOneListbox.java

Changed DEFAULT_SIZE to 0 instead of Integer.MIN_VALUE

> 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
>  Attachments: HtmlSelectOneListbox.java
>
> 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