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

Customizing a combo's bound model

Gxt ComboBox provides a powerful and compact way of allowing selection from a lot of beans or POJOs as described in the previous recipe. However, there are times we need to configure the models (ModelData instances) stored in the combo's store by altering/formatting existing fields or adding totally new fields.

Consider a Customer POJO with a firstname and lastname field, no fullname field, but a getFullName() helper method that returns the concatenation of getLastName() and getFirstName(). How do we display the full names of the customers in the combo's drop-down list? As there's no fullname field in the Customer POJO (it is computed) what do we use in the combo's setDisplayField() configuration?

Even if there ...

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