PDA

View Full Version : [FNR] TimeField minValue issue



kdevr
2 Nov 2010, 7:48 AM
i am having a strange issue with TimeField. When trying to set a minValue on the timeField, the combobox dropdown never happens. Here is a sample code..

timeField.setName(TradeIdeasStaticData.TID_EXPIRY_DATE_FIELD);
timeField.setAllowBlank(true);
timeField.setAutoValidate(true);
timeField.setTriggerAction(ComboBox.TriggerAction.ALL);
timeField.setMinValue(new Date());

and then i add this field to my form Panel

Any ideas what is going on?

sven
2 Nov 2010, 7:51 AM
You need to use 1/1/1970 as date with your timeas workaround

sven
2 Nov 2010, 8:11 AM
Fixed in SVN as of revision 2311