Vitor, There are 2 DateTextField I know for wicket, org.apache.wicket.datetime.markup.html.form.DateTextFieldand org.apache.wicket.extensions.markup.html.form.DateTextField. I used many DateTextField from wicket extensions in my project. It works fine. The code is almost the same with the one you use,
DateTextField dateTF = new DateTextField("finalDate", new PropertyModel(someObject.getFinalDate(), "dd/MM/yy"); You can get the extentions class from maven by add below code to your project dependencies. <dependency> <groupId>org.apache.wicket</groupId> <artifactId>wicket-extensions</artifactId> <version>${wicket.version}</version> </dependency> If you haven't solved your problem, you can try this. I hope this will help you. Regards, Noven ________________________________ From: Vitor Granzinoli Vellozo <vitor.vell...@cpmbraxis.com> To: users@wicket.apache.org Sent: Wednesday, June 22, 2011 4:16 AM Subject: Strange problem with DateTextField Wicketers, I found a problem with DateTextField, when a date comes like 11/10/2010 (dd/MM/yyyy) to be showed at a page, and it shows 10/10/2010, it shows a date decreased. The same ocurrs if the date is 12/10/2010. It ocurrs with dates near 10/10/2010. I also fixed dates manually and it doesn't change, it's very strange and I need you help. Below, the code: DateTextField dateTF = new DateTextField("finalDate", new PropertyModel(someObject.getFinalDate(), "finalDate"), new PatternDateConverter("dd/MM/yyyy", true)); dateTF.add(new DatePicker()); add(dateTF); Some idea about? Thanks a lot Vitor