This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes selectOneListBox size attribute not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "selectOneListBox size attribute not working" Watch "selectOneListBox size attribute not working" New topic
Author

selectOneListBox size attribute not working

Peter LaForest
Greenhorn

Joined: Nov 28, 2008
Posts: 1
Hello all,

Thanks for any help in advance.

JSF documentation states that if I set the size attribute for the selectOneListBox element that the number of options displayed will be limited to that number. I have also found info that a vertical scroll bar will appear to handle overflow.

This does not appear to be working.

All elements are displayed regardless of what I set the size attribute to.

code sample:

<h:selectOneListBox id="id"
size="10"
value="#{MyBean.myvariable}"
valueChangeListener="#{MyBean.mylistener}">
<f:selectItems id="id" value="#{MyBean.mylist}" />
</h:selectOneListBox>

Tomcat 6.0.14
JVM 1.5.0 MAC OSX
IE 7.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: selectOneListBox size attribute not working
 
Similar Threads
Strange selectOneListbox problem
problem when working with selectOneListbox
Help - question on selectOneListbox and page reloads
Default value for a selectOneListbox
Newbie selectOneListBox question