yeah im somewhere in that line already. type to string conversion seems to be the most obvious way to do it but im trying to see if there's a better way to implement it.
On Mon, May 14, 2012 at 6:51 PM, Jens <jens.nehlme...@gmail.com> wrote: > Good question.. never used it with Editor Framework. > > I think I would try implementing ValueAwareEditor in the parent editor to > gain access to the value being edited and being notified about flush(). If > you add @Ignored to the SuggestBox field then you are able to handle the > SuggestionBox yourself. You could add a selection handler to the SuggestBox > to keep track of the selection made (you receive a Suggestion instance => > your type) and use this selection in ValueAwareEditor.flush() to fill your > data object. In ValueAwareEditor.setValue() you have to convert your type > to a String and set it to the SuggestBox. > > Not sure if there are other, more elegant ways. I think you have to manage > the "your type" <-> "string" conversion yourself. > > -- J. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.