Re: [Wicket-user] DatePicker configuration
Just don't use an ajax link to switch the locale. That's not a super idea anyway, as you would typically want the the whole page, with all it's markup etc to reload. Change the switch locale link to a normal link and all should be good. One use case is the need to have the page in ono language and teh datePicker in another one. Another use case could be to have to datePicker in the same page with different languages. Anyway, I figured a way to achieve this, but it was just to realize that it appears that the datePicker can't work anyway in a component that is updated through Ajax. I have an Ajax tabbed panel with one tab containing a datePicker. If I swith to another tab and switch back, the datePicker won't work anymore in IE6 unless the page is reloaded. (No error displayed, just you click on the icon and nothing happens. It works fine in FF, of course) Any suggestion ? Pierre-Yves Eelco Hillenius a écrit : Can somebody tell me how to use setStyle() with a DatePicker settings.setStyle(settings.newStyleGreen()); or (completely custom style) settings.setStyle(new PackageResourceReference(MyDatePicker.class, myStyle.css)); DatePickerSettings datePickerSetting = new DatePickerSettings(); datePickerSetting.setAlign(cr); add(new DatePicker(dateFieldPicker, dateField, datePickerSetting)); but this does not work. With this configuration, when I click on the icon, the DatePicker is not displayed. If I remove the second line, it works. No idea. Please take a look at what jscalendar does/ expects, as many fields are just a means to pass values through to that components. Read about jscalendar here: http://www.dynarch.com/projects/calendar/ Another problem is to configure the DatePicker in a page which locale is switched through an Ajax link. Although the component containing the DatePicker receives the response, the locale of the DatePicker is not changed. I have to reload the teh page to get it work. Is there a solution to have the DatePicker refreshed so its locale is changed ? Just don't use an ajax link to switch the locale. That's not a super idea anyway, as you would typically want the the whole page, with all it's markup etc to reload. Change the switch locale link to a normal link and all should be good. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] DatePicker configuration
Hello, Can somebody tell me how to use setStyle() with a DatePicker ? I tried to use : DatePickerSettings datePickerSetting = new DatePickerSettings(); datePickerSetting.setAlign(cr); add(new DatePicker(dateFieldPicker, dateField, datePickerSetting)); but this does not work. With this configuration, when I click on the icon, the DatePicker is not displayed. If I remove the second line, it works. Another problem is to configure the DatePicker in a page which locale is switched through an Ajax link. Although the component containing the DatePicker receives the response, the locale of the DatePicker is not changed. I have to reload the teh page to get it work. Is there a solution to have the DatePicker refreshed so its locale is changed ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker configuration
Can somebody tell me how to use setStyle() with a DatePicker settings.setStyle(settings.newStyleGreen()); or (completely custom style) settings.setStyle(new PackageResourceReference(MyDatePicker.class, myStyle.css)); DatePickerSettings datePickerSetting = new DatePickerSettings(); datePickerSetting.setAlign(cr); add(new DatePicker(dateFieldPicker, dateField, datePickerSetting)); but this does not work. With this configuration, when I click on the icon, the DatePicker is not displayed. If I remove the second line, it works. No idea. Please take a look at what jscalendar does/ expects, as many fields are just a means to pass values through to that components. Read about jscalendar here: http://www.dynarch.com/projects/calendar/ Another problem is to configure the DatePicker in a page which locale is switched through an Ajax link. Although the component containing the DatePicker receives the response, the locale of the DatePicker is not changed. I have to reload the teh page to get it work. Is there a solution to have the DatePicker refreshed so its locale is changed ? Just don't use an ajax link to switch the locale. That's not a super idea anyway, as you would typically want the the whole page, with all it's markup etc to reload. Change the switch locale link to a normal link and all should be good. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user