aspose file tools*
The moose likes Other Application Frameworks and the fly likes Wicket DatePicker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Wicket DatePicker" Watch "Wicket DatePicker" New topic
Author

Wicket DatePicker

Preity Raj
Greenhorn

Joined: Apr 04, 2011
Posts: 3
Hi All,

I am trying to use wicket extensions datepicker but i am getting following problem-

The date picker shows a different behaviour when deploying the application on Liferay.
After initial loading of the page, it is not possible to open the date pickers, but after issuing a page refresh, it is possible to open the date pickers.

Please help me if you have any solution about this problem or if anyone knows how to use locale from wicket in javascript datepicker.

rajeev yadav
Greenhorn

Joined: Mar 28, 2011
Posts: 26
Can you please post sample code that you are trying with the issue details
Preity Raj
Greenhorn

Joined: Apr 04, 2011
Posts: 3
I have just added wicket extension datepicker component to textfield.
rajeev yadav
Greenhorn

Joined: Mar 28, 2011
Posts: 26
Which wicket version are you using. I checked on 1.3 and 1.4.15 and it works fine for me.
Preity Raj
Greenhorn

Joined: Apr 04, 2011
Posts: 3
hi.. I am using wicket 1.4.9
rajeev yadav
Greenhorn

Joined: Mar 28, 2011
Posts: 26
It would be great if you can upload source code so that I can see what is causing the issue. Also try using 1.4.15 as this is stable version in 1.4
rajeev yadav
Greenhorn

Joined: Mar 28, 2011
Posts: 26
Priety,
try this:

HTML:
<input wicket:id="date" type="text" maxlength="10" /><span
wicket:id="datePicker" />

Java:
DateTextField dateField = new DateTextField("date", "d-M-yyyy");
dateField.setRequired(true);
add(dateField);

DatePicker dp = new DatePicker("datePicker", dateField);
dp.setDateConverter(new DateConverter() {
public DateFormat getDateFormat(Locale locale) {
return new SimpleDateFormat("d-M-yyyy");
}
});
add(dp);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wicket DatePicker