Re: Editor with ListBox in UiBinder
Currently ValueListBox automatically adds a "null" value even if its not in the list of acceptable values. You don't have to call ValueListBox.setValue(null) yourself. That's because setAcceptableValues() calls updateListBox() which adds the currently selected value to the ListBox if its not in the set of acceptable values. By default "null" is the selected value.
This behavior has been changed in http://gwt-code-reviews.appspot.com/1619803/ but its not yet committed.
Currently if you want a ValueListBox without a null value you would do:
ValueListBox valueListBox = new ...
valueListBox.setValue(<any value that is in acceptable values>);
valueListBox.setAcceptableValues(<acceptable values without null>);
-- J.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/uUmUWTD8TGIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home