File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Difference between h:selectManyMenu and h:selectManyListbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Difference between h:selectManyMenu and h:selectManyListbox" Watch "Difference between h:selectManyMenu and h:selectManyListbox" New topic
Author

Difference between h:selectManyMenu and h:selectManyListbox

Santosh Raveendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 83
Hi Team

can any one tell the difference between these h:selectManyMenu and h:selectManyListbox, both seem to give the same view and output . please advice


SCJP 1.4,SCWCD5, SCBCD5
Thanks, Santhosh
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

The difference is in the size attribute. Menu's have a size of 1 and list can have variable size.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Arvinder Chawla
Greenhorn

Joined: Jun 09, 2010
Posts: 1
The SelectManyMenu tag renders an HTML "select" element with the "multiple" attribute present and the "size" attribute set to 1. This component is designed for situations where you want to display a list of menu items to the user that allows the selection of multiple options using a menu that displays one item at a time.

The main difference between select lists and menus in JSF is the "size" attribute. Menus always have a size of one, while lists can have a variable size.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Arvinder if you're going to copy text from another site at least provide a link to it.

And welcome to the JavaRanch.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between h:selectManyMenu and h:selectManyListbox