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

2014-06-20 Thread Vojtech Szocs
Hi Yair, sorry for my late response. As Lior mentioned, ListModelListBox accepts Renderer that is passed to ValueListBox constructor. The purpose of a Renderer is to create user presentable string for given item (T). The fact that getValue() returns T rather than String is expected, as T is the

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

2014-06-15 Thread Lior Vernia
Hi Yair, I think this is exactly what happens in our GUI in most list boxes. The class ListModelListBoxT 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