File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes DateBox issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "DateBox issue" Watch "DateBox issue" New topic
Author

DateBox issue

Adi Vicks
Greenhorn

Joined: Feb 23, 2012
Posts: 9
I have a DateBox , setting the default format like :
DateBox dateBox = new DateBox();
dateBox.setFormat(new DefaultFormat(DateTimeFormat.getFormat("MM/dd/yyyy"));

Now the date picker works fine. However if I enter date manually in the textbox some other format like : 2011/03/02 , it automatically changing the date to some junk date : 07/03/0169

If I don't set the date format and try to get the String and parse it in onValueChangeEvent of the textBox, the control doesn't even fire this event as it takes 2011/03/02 as valid date
and changes the text box automatically.

Clueless.. please some one help !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DateBox issue