O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Capturing multiple input selection

In an earlier recipe from this chapter, we stated why combos are generally better than checkboxes when we need to provide the user with an elaborate list of items to choose from. Well, the only drawback to that assertion is that while checkboxes are designed to allow multiple selections, the GXT ComboBox isn't, at least not without some sort of plugin. Thankfully, there are two ways (excluding the plugin approach) to solve this in GXT, the first is to use a ListField and the second is the DualListField, both of which provide multiple selections out-of-the-box.

ListField behaves like HTML SELECT element having the multiple attribute turned on, thus it allows the user to make multiple selections while holding ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required