wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Difference between h:selectManyMenu and h:selectManyListbox" Watch "Difference between h:selectManyMenu and h:selectManyListbox" New topic

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

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

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
Similar Threads
difference between IOC and Dependency Injection
Technology vs framework
difference between page and request
Priority Queue
problem with h:selectManyMenu