date time picker to show seconds in the text field

83 views
Skip to first unread message

oggie

unread,
Apr 4, 2012, 2:30:02 PM4/4/12
to jqwicket-user
How do I get the date time picker to show the seconds in the text box?
I have the seconds showing in the jqeury ui, but not the text box:

DateTimePickerOptions timePickerOptions = new DateTimePickerOptions();
timePickerOptions.hourGrid(3);
timePickerOptions.minuteGrid(10);
timePickerOptions.secondGrid(10);
timePickerOptions.showSecond(true);
TimePickerTextField startTimeField = new
TimePickerTextField<Date>("timeOfDayStart",
timePickerOptions);
form.add(startTimeField);

<input type="text" id="timeOfDayStart" wicket:id="timeOfDayStart"/>

Thanks

oggie

unread,
Apr 4, 2012, 2:42:19 PM4/4/12
to jqwick...@googlegroups.com
I figured it out when I was checking out the timepicker jquery tool options:
timePickerOptions.timeFormat("hh:mm:ss");
Reply all
Reply to author
Forward
0 new messages