-
27 Jul 2008 11:03 PM #1
timeField.setMinValue(min);
timeField.setMinValue(min);
Hi,
I'm trying to set the minValue in the TimeField component by setting the minimum to the current hour. However, even though I used code similar to that below the timeField minimum in the UI maintains the default value.
TimeField timeField = new TimeField();
timeField.setFieldLabel("Time");
Date min = new Date();
timeField.setMinValue(min);
Does anyone have sucessful experience getting this to work and/or have any suggestion as to what I am doing incorrectly? I looked at the source code but that did not help me much.
thanks,
Mark
-
27 Jul 2008 11:30 PM #2
seems a bug exists....
the last line above kinda clears out any min time set in the initList method.... not sure why.Code:protected void initList() { DateWrapper min = minValue != null ? new DateWrapper(minValue) : new DateWrapper(); min = min.clearTime();
Post this to the bug forum.
Cheers,
Grant


Reply With Quote