wicket-jquery-ui DatePicker JS problems
Hi all, I'm trying to add a (kendo?) DatePicker to my form, in other words this one: http://www.7thweb.net/wicket-jquery-ui/datepicker/DefaultDatePickerPage I think I've done everything listed here, adapting things to my needs: http://www.7thweb.net/wicket-jquery-ui/ but the javascript console is showing this error and the DatePicker doesn't show up: TypeError: jQuery(...).datepicker is not a function This makes me suspect I haven't linked all the necessary js files to my HTML code and, to be honest, I'm afraid it's more than a suspect: I know I haven't, because the instructions do not tell to do that, and I assumed that was going to happen automagically... More precisely, I didn't download nor link the jquery-ui js files, nor the kendo ones. I only dowloaded, copied and linked the jquery-ui and kendo css files. Should I provide for the js files also? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-jquery-ui DatePicker JS problems
Hi Lucio, You guessed right, JS libraries are embedded in the jar(s), and attached to the page as soon as you use a jquery-ui/kendo component. Please check either: - the wicket-jquery-ui jars are well deployed. - the js are well included in the page's head If I remember correctly, somebody had a similar problem (I dont remember what was the issue), please have a look in the archives... Thanks and best regards, Sebastien On Jun 23, 2014 3:09 PM, Lucio Crusca lu...@sulweb.org wrote: Hi all, I'm trying to add a (kendo?) DatePicker to my form, in other words this one: http://www.7thweb.net/wicket-jquery-ui/datepicker/DefaultDatePickerPage I think I've done everything listed here, adapting things to my needs: http://www.7thweb.net/wicket-jquery-ui/ but the javascript console is showing this error and the DatePicker doesn't show up: TypeError: jQuery(...).datepicker is not a function This makes me suspect I haven't linked all the necessary js files to my HTML code and, to be honest, I'm afraid it's more than a suspect: I know I haven't, because the instructions do not tell to do that, and I assumed that was going to happen automagically... More precisely, I didn't download nor link the jquery-ui js files, nor the kendo ones. I only dowloaded, copied and linked the jquery-ui and kendo css files. Should I provide for the js files also? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-jquery-ui DatePicker JS problems
In data lunedì 23 giugno 2014 14:41:37, Sebastien ha scritto: Hi Lucio, You guessed right, JS libraries are embedded in the jar(s), and attached to the page as soon as you use a jquery-ui/kendo component. Please check either: - the wicket-jquery-ui jars are well deployed. What should I do to check that? I've already looked at page source and the js links are working (see below). - the js are well included in the page's head I have this right after head script type=text/javascript src=../resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-1.11.0- ver-139768759.js/script script type=text/javascript src=../resource/com.googlecode.wicket.jquery.core.resource.JQueryUIResourceReference/jquery- ui-1.10.4.custom-ver-1398510244000.js/script script type=text/javascript id=jquery-datepicker-1401590941 /*![CDATA[*/ jQuery(function() { jQuery('#datanascita3f').datepicker({ }); }); /*]]*/ /script If I remember correctly, somebody had a similar problem (I dont remember what was the issue), please have a look in the archives... Already tried, but I haven't found anything similar, maybe it's not immediately obvious from the message subject that the issue is what I'm looking for. Google didn't help either. However I have (another) suspect: could my custom ready() function conflict with jquery-ui/kendo/whatever? $(document).ready(function(){ $(.euro1).next(ul).slideUp(1); $(.tab_schedina).slideUp(1); $(.tab_quotemigliori).slideUp(1); $(.compara_link).slideUp(1); $(.euro1).click(function(){ $(this).next(ul).slideToggle(1000); }); $(.dic_schedina).click(function(){ $(.tab_schedina).slideToggle(600); $(.tab_quotemigliori).slideToggle(600); $(.compara_link).slideToggle(600); }); }); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
jquery ui DatePicker
Hi, is's quite frustrating, I use the jquery ui DatePicker for a valid to filed on a user form. Everything seems to be ok, but I want to display that a user don't expire and so I save 31.12. (german date format dd.MM.) in database. Now I try to edit a user and the init of the form is OK, but the datepicker input field shows always 31.12.99 (two digits in year) normally no problem If I try to save the data I get a validation error, because the internal representation of the date is 31.12.1999. After asking google I found a view tips but nothing works for me?? Any help or idea ?? Thanks in advance Cheers Dirk - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: jquery ui DatePicker
Hi Dirk, If you are referring to wicket-jquery-ui datepicker: the jquery date format option should match the java date format, ie: new DatePicker(mydate, model, dd.MM., new Options(dateFormat, Options.asString(dd.mm.yy))); Hope this helps, Sebastien. On Thu, Apr 17, 2014 at 3:48 PM, Dirk Wichmann dir...@team-wichmann.dewrote: Hi, is's quite frustrating, I use the jquery ui DatePicker for a valid to filed on a user form. Everything seems to be ok, but I want to display that a user don't expire and so I save 31.12. (german date format dd.MM.) in database. Now I try to edit a user and the init of the form is OK, but the datepicker input field shows always 31.12.99 (two digits in year) normally no problem If I try to save the data I get a validation error, because the internal representation of the date is 31.12.1999. After asking google I found a view tips but nothing works for me?? Any help or idea ?? Thanks in advance Cheers Dirk - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: jquery ui DatePicker
Hi Dirk, have a look at http://jqueryui.com/datepicker/#date-formats and http://api.jqueryui.com/datepicker/#option-dateFormat to change the javascript-side jquery date formatting pattern to 4-letter-year. (Pay attention, it is a bit different to java date patterns.) To do so, you have to apply the jquery date pattern as an Option to your DatePicker instance on java-side. Something like this: new Options(dateFormat, Options.asString(dd.mm.) kind regards Patrick Am 17.04.2014 15:48, schrieb Dirk Wichmann: Hi, is's quite frustrating, I use the jquery ui DatePicker for a valid to filed on a user form. Everything seems to be ok, but I want to display that a user don't expire and so I save 31.12. (german date format dd.MM.) in database. Now I try to edit a user and the init of the form is OK, but the datepicker input field shows always 31.12.99 (two digits in year) normally no problem If I try to save the data I get a validation error, because the internal representation of the date is 31.12.1999. After asking google I found a view tips but nothing works for me?? Any help or idea ?? Thanks in advance Cheers Dirk - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: jquery ui DatePicker
Hi, that's it, thanks a lot, sometimes the solution is so near. Cheers Dirk Am 17.04.2014 16:04, schrieb Sebastien: new DatePicker(mydate, model, dd.MM., new Options(dateFormat, Options.asString(dd.mm.yy))); - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket JQuery UI Datepicker
Hi all, at the Moment I have trouble to configure the DatePicker from JQuery UI. I have included com.googlecode.wicket-jquery-ui Version 6.12.0 The DatePicker is shown in the UI but Date is allways displayed as 11/08/2013 and I get the error date cannot converted What is the trick to get it running?? Thanks in advance Dirk - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket JQuery UI Datepicker
Hi Dirk, Thank to remind me that I definitely should add a sample for DatePicker's pattern... The Java date pattern differs from the jQuery UI one, so you have to make sure both are matching: For instance: new DatePicker(date, dd.MM., new Options(dateFormat, Options.asString(dd.mm.))); jQuery UI doc: http://api.jqueryui.com/datepicker/ Best regards, Sebastien. On Sun, Nov 17, 2013 at 10:26 PM, Dirk Wichmann dir...@team-wichmann.dewrote: Hi all, at the Moment I have trouble to configure the DatePicker from JQuery UI. I have included com.googlecode.wicket-jquery-ui Version 6.12.0 The DatePicker is shown in the UI but Date is allways displayed as 11/08/2013 and I get the error date cannot converted What is the trick to get it running?? Thanks in advance Dirk - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org