[ovirt-devel] GWT/Frontent - Looking for convinient way to seperate the "data" from "presentation" in combo boxes

Lior Vernia lvernia at redhat.com
Sun Jun 15 06:16:35 UTC 2014

Hi Yair,

I think this is exactly what happens in our GUI in most list boxes.

The class ListModelListBox<T> renders the options for display using a
Renderer passed to its constructor, but getValue() returns the actual
selected item of type T rather than the String (and this in turn is what
is set as the selected item in the backing ListModel<T>).

Does this answer your question?

Yours, Lior.

On 14/06/14 11:20, Yair Zaslavsky wrote:
> HI all,
> If you look at this link -
> http://www.w3schools.com/tags/tag_select.asp
> It shows a selection in which you have a differentiation between the displayable value, and the "data" value (which will be sent as the "selected value").
> How can I do the same in GWT? At ListModel for example I saw methods only to add items.
> Thanks,
> Yair
> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel

More information about the Devel mailing list