Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-26 Thread Sebastien
Hi Chris, AFAIS, the only thing that I think it could typically cause an issue is calcHeight(). But the error message is misleading, I would have expect a calcHeight is undefined instead, so I am not really sure... Furthermore, I don't know how/where you have included the calcHeight function. If

Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-26 Thread Chris
Sebastian, thank you for your answer! Chris Am 26.04.2015 um 20:38 schrieb Sebastien seb...@gmail.com: Hi Chris, Yes wicket includes it on demand (when it need it, like with wicket events). If you need to add a custom javascript, I recommend you to do it through a

Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-26 Thread Chris
Hi Sebastian, thanks for your help. the reason for this error seems that I load jquery-1.11.2.min.js in wicket head next to jQuery-1.11.1 which is already loaded via wicket. However, when I restrain from loading jquery-1.11.2.min.js in wicket head , the javascript $(function () {…} is not

Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-26 Thread Sebastien
Hi Chris, Yes wicket includes it on demand (when it need it, like with wicket events). If you need to add a custom javascript, I recommend you to do it through a JQueryPluginResourceReference, so underlying jquery library will be automatically loaded when you use it... For instance, in

Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-26 Thread Sebastien
Hi Chris, You cannot have 2 concurrent versions of jquery... If you need to upgrade jquery version, please use: this.getJavaScriptLibrarySettings().setJQueryReference(jQueryReference) - in MyApplication#init() Hope this helps, Sebastien On Sun, Apr 26, 2015 at 7:14 PM, Chris chris...@gmx.at

Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-26 Thread Chris
Hi Sebastian, I just did this - but nevertheless, if I do not include the same version in wicket:head, $(function () is not called in html head. Does Wicket include it only for internal purposes, but not automatically for JS placed in HTML? Thanks, Chris Am 26.04.2015 um 19:33 schrieb

Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function

2015-04-25 Thread Chris
Hi Sebastian, I would like to render the container with the sortable items based on a Wicket event: @Override public void onEvent(IEvent? event) { super.onEvent(event); if (event.getPayload() instanceof AddItem) {