Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between h:selectManyMenu and h:selectManyListbox

 
Santosh Raveendran
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The difference is in the size attribute. Menu's have a size of 1 and list can have variable size.
 
Arvinder Chawla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arvinder if you're going to copy text from another site at least provide a link to it.

And welcome to the JavaRanch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic