|
DatePicker
How to useSee 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" /> JavaDatePicker<Date> datePicker = new DatePicker<Date>("datePicker");
datePanel.add(datePicker);OptionsSee http://docs.jquery.com/UI/Datepicker TODO | |
► Sign in to add a comment
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")
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
The example link doesn't work, a typo probably. It should be: http://wiquery-examples-1-1-x.appspot.com/?wicket:bookmarkablePage=:org.odlabs.wiquery.examples.datepicker.DatePickerPage