wood burning stoves 2.0*
The moose likes GWT and the fly likes Code for a multi-select listbox / combobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Code for a multi-select listbox / combobox" Watch "Code for a multi-select listbox / combobox" New topic
Author

Code for a multi-select listbox / combobox

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

Hi,
I need to add a listbox / combobox which allows the user to choose several values.
I know there is one already available in the GWT API
http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/index.html?overview-summary.html
with isMultipleSelect() set to true.
But the problem is that this version takes too much space.

I am looking for something like that (second one on that page, the picklist) :
http://www.smartclient.com/smartgwt/showcase/#multi_select_combobox_category

Can anyone share some code for that kind of list box ? I do not want to use Smart GWT at the moment.

Another cool idea would be to add a small button on the right of a textbox and when the user clicks on that small button,
a pop up opens and the user can select values from that popup by checking them (checkboxes) and that would automatically
populates the textbox (values separated by commas) when he closes the popup.

How do i implement such widget ?
I am looking for samples, ideas, suggestions ...

Thanks !


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Code for a multi-select listbox / combobox
 
Similar Threads
SelectManyListBox is acting really weird
popup windows
Swings
Jsp and html elements
Using Values in a List form one JSP to Another