• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Code for a multi-select listbox / combobox

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic