Thanks for the reply. So, I guess I will wait until 2.5 comes out and see 
whether there are any changes made in the near future.

I can live with a null value there for a while as it's only in development 
stage.

You guys are great.

Drew

On Wednesday, 5 September 2012 16:18:24 UTC+1, Jens wrote:
>
> 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/-/uT3hQRLsMQ4J.
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