138 total views, 5 views today

JSF SelectManyListBox Example

 

The JSF SelectManyListBox display an HTML <Select multiple=”multiple”> in the browser. It displays a list of items in a box which allows a user to select more than one items at a time. Below are the JSF and its corresponding HTML tag

 

JSF <h:SelectManyListBox>:

 

 

HTML <Select>:

 

 

 

JSF <h: SelectManyList> Example

 

Below JSF contains a SelectManyList where value attribute is bound to the back bean String array. The console prints the selected items when user submits the commandButton in this page

 

 

 

Below is the backing bean class. The doSubmit button prints the selected items in the <h:selectManyList>. 

 

 

The JSF SelectManyList renders like below:

 

JSF_SelectManyListBox_Example JSF SelectManyListBox Example

 

Download the JSF Project:

 

govindan JSF SelectManyListBox Example
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan JSF SelectManyListBox Example
Connect me
By | 2017-11-26T12:35:26+00:00 November 26th, 2017|Categories: JSF|Tags: , , , |0 Comments
Like us on Facebook.
Connect!