My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
DatePicker  
Updated Nov 14, 2010 by roche....@gmail.com

How to use

See example here: http://wiquery-examples-1-1-x.appspot.com/wicket:bookmarkablePage=:org.odlabs.wiquery.examples.datepicker.DatePickerPage

XHTML

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

Java

DatePicker<Date> datePicker = new DatePicker<Date>("datePicker");
datePanel.add(datePicker);

Options

See http://docs.jquery.com/UI/Datepicker

TODO

Comment by jla...@gmail.com, Mar 2, 2011

I had trouble with the DatePicker not respecting month and day formatting -- and would get invalid dates every time in version 1.1.2.

Changing the generic from Date to String (DatePicker<String>) and then parsing later allowed me to use forrmatting structures like setDateFormat("yy-mm-dd")

Comment by project member roche....@gmail.com, Mar 3, 2011

Hi, You have to done two operations: 1) use the setDateFormat for the formatting into the javascript datepicker widget 2) override the instance of the DatePicker class and use the wicket class PatternDateConverter? into the method getIConverter

Otherwise, Wicket will convert with the default pattern, not with yours

Regards

Julien Roche


Sign in to add a comment
Powered by Google Project Hosting