Re: Modify DateBox behaviour

2012-02-08 Thread Appien
Bummer! I was setting the Format correctly however somewhere later in the constructor I was overwriting the Formatter with the defaultformat. Thanks for your help. On Feb 8, 6:49 pm, jhulford wrote: > No, you'll want your parse method to handle the two digit year by > detecting that the user key

Re: Modify DateBox behaviour

2012-02-08 Thread jhulford
No, you'll want your parse method to handle the two digit year by detecting that the user keyed that and then just returning a Date object that has the valid years in it. On Feb 8, 6:23 am, Appien wrote: > HI Jhulford, > > I dont get it. What should my parse method do if I not want my Datebox > t

Re: Modify DateBox behaviour

2012-02-08 Thread Appien
HI Jhulford, I dont get it. What should my parse method do if I not want my Datebox to modify the values entered in the DateBox? Should it just return null ? Regards On Feb 7, 3:34 pm, jhulford wrote: > You can pass in your own Format implementation when creating your > DateBox and you'll hav

Re: Modify DateBox behaviour

2012-02-07 Thread jhulford
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 wrote: > Hi folks, > > Currently I'm struggling the DateBox widget of GWT. It's a nice widget

Modify DateBox behaviour

2012-02-06 Thread Appien
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 changi