Hi!
I hoped my code would result in the label getting the selected date,
but nothing happens?

                             final Label dateText = new Label();

                                DatePicker datePicker = new DatePicker();

                                datePicker.addValueChangeHandler(new 
ValueChangeHandler() {
                                      @SuppressWarnings("unchecked")
                                        public void 
onValueChange(ValueChangeEvent event) {


                                          Date date = (Date) event.getValue();
                                          String dateString =
DateTimeFormat.getMediumDateFormat().format(date);

                                        dateText.setText(dateString);
                                      }
                                    });

Regards
Robert

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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