I am not able to go beyond 1995 and 2015 if I select the date picker directly. If a date is entered in the field beyond this range, then the date picker shows the date. This is a problem with DOB fields and is probably a bug?
I am using the 5/11/2012 LGPL nightly with GWT 2.3. Even GWT 2.4 didn't make any difference.
Interestingly, the Showcase works fine, not sure how.
Here's the sample code.
I am using the 5/11/2012 LGPL nightly with GWT 2.3. Even GWT 2.4 didn't make any difference.
Interestingly, the Showcase works fine, not sure how.
Here's the sample code.
Code:
public void onModuleLoad() { final VLayout layout = new VLayout(10); final DynamicForm dateForm = new DynamicForm(); dateForm.setWidth(450); dateForm.setIsGroup(true); dateForm.setGroupTitle("Date Controls"); final DateItem dateItem = new DateItem(); dateItem.setTitle("Date"); dateItem.setHint("<nobr>Picklist based date input</nobr>"); final DateItem dateItem2 = new DateItem(); dateItem2.setTitle("Date"); dateItem2.setUseTextField(true); dateItem2.setHint("<nobr>Direct date input</nobr>"); final TimeItem timeItem = new TimeItem("timeItem", "Time"); final DateRangeItem dateRangeItem = new DateRangeItem("dri", "Date Range"); dateRangeItem.setAllowRelativeDates(true); final DateRange dateRange = new DateRange(); dateRange.setRelativeStartDate(RelativeDate.TODAY); dateRange.setRelativeEndDate(new RelativeDate("-1m")); dateRangeItem.setValue(dateRange); final MiniDateRangeItem miniDateRangeItem = new MiniDateRangeItem("mdri", "Mini Date Range"); final RelativeDateItem relativeDateItem = new RelativeDateItem("rdi", "Relative Date"); dateForm.setItems(dateItem, dateItem2, timeItem, dateRangeItem, miniDateRangeItem, relativeDateItem); layout.addMember(dateForm); layout.draw(); }
Comment