PDA

View Full Version : [FIXED] timeField.setMinValue(min)



md10024
28 Jul 2008, 7:05 AM
There seems to be a bug in the GXT 1.0.1 version relating to the setMinValue method of TimeField. This code does not change the displayed min value in the dropdown

TimeField timeField = new TimeField();
timeField.setFieldLabel("Time");
Date min = new Date();
timeField.setMinValue(min);

and looking at the source code, we see:
protected void initList() {
DateWrapper min = minValue != null ? new DateWrapper(minValue) : new DateWrapper();
min = min.clearTime();
....

darrellmeyer
2 Aug 2008, 10:44 AM
Fix is in SVN.