You can pass in your own Format implementation when creating your
DateBox and you'll have total control how the text value input from
from the user is parsed into a Date object.

On Feb 7, 1:51 am, Appien <[email protected]> wrote:
> Hi folks,
>
> Currently I'm struggling the DateBox widget of GWT. It's a nice widget
> however I can't find a way to modify its default behaviour. When I
> know enter e.g. '12/2/12' it automaticly get parsed and changed the
> input to '12/2/0012'. However I want to stop the DateBox from
> automatically changing the input and just mark it with the red css
> styling if it doesn't match the regular expression dd/mm/yyyy.
>
> Is there a way to stop DateBox from automaticallychanging the input?
> I've already found the DateBox.DefaultFormat object and found
> reference to handler, but could not find the proper way to implement
> it.
>
> Thanks and regards!

-- 
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