3xM
unread,Jul 21, 2012, 6:35:05 PM7/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-bo...@googlegroups.com
hi,
i have trouble using DateBox. date format in text box after i choose date from calendar is wrong.
but, not always. if i set format to dd/mm/yy, or mm/dd/yy, its ok.
the problem is when i use MMM for Jul or MMMM for July; also EEE for day of week.
date is displayed fine before i choose another from calendar. for example:
db.setFormat("EEE, MMM d, ''yy"); - and its displayed ok, like this: Sun, Jul 22, '12
after i choose a date it is displayed like this: EEE, DecemberDec 22, ''12
i also noticed that any character after the last year digit is removed:
db.setFormat("dd.mm.yyyy."); displayed as 22.07.2012.
after selecting date it is: 22.07.2012
i looked at DateBoxBase source and it looks like setValue() method works fine, it is called from setFormat().
but, it is not called when date is selected from calendar! i could not find what method sets value of TextBox after user select date.