This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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);
 
Don't get me started about those stupid light bulbs.
 
subject: Wicket DatePicker
 
Similar Threads
Not able to download JQuery Plugins
Using DatePicker in JSP
Page is refreshing continously on IE
DateTime Picker
jquery datepicker not working