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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to