Re: Drag/drop multiple items

2017-01-18 Thread Maxim Solodovnik
To be fair I'm not sure :( This magic is hidden inside DroppableBehavior code :( And I'm afraid my "drop" handler might be overridden inside DroppableBehavior.onConfigure Hopefully Sebastien can help here :) On Thu, Jan 19, 2017 at 1:48 PM, Martin Makundi < martin.maku...@koodaripalvelut.com>

Re: Drag/drop multiple items

2017-01-18 Thread Martin Makundi
Can you group them in javascript and detect group in wicket side, for example as list of ids? 2017-01-19 8:29 GMT+02:00 Maxim Solodovnik : > Hello Sebastien, > > I'm trying to implement subj. > JS example I'm using as POC is here [1] > Everything works, except for one

Drag/drop multiple items

2017-01-18 Thread Maxim Solodovnik
Hello Sebastien, I'm trying to implement subj. JS example I'm using as POC is here [1] Everything works, except for one thing: no matter how many objects I'm dropping I only have 1 onDrop() event inside wicket can you help me to fix/workaround this? Thanks in advance! [1]

ApacheCon CFP closing soon (11 February)

2017-01-18 Thread Rich Bowen
Hello, fellow Apache enthusiast. Thanks for your participation, and interest in, the projects of the Apache Software Foundation. I wanted to remind you that the Call For Papers (CFP) for ApacheCon North America, and Apache: Big Data North America, closes in less than a month. If you've been

Re: Error while calling Wicket from a JavaScript function

2017-01-18 Thread James Selvakumar
Thanks for the clear explanation Martin. On Wed, Jan 18, 2017, 8:30 PM Martin Grigorov wrote: > On Wed, Jan 18, 2017 at 10:35 AM, James Selvakumar > wrote: > > > Hi Martin, > > > > Is it possible to return a value from the ajax behavior while

Re: Error while calling Wicket from a JavaScript function

2017-01-18 Thread Martin Grigorov
On Wed, Jan 18, 2017 at 10:35 AM, James Selvakumar wrote: > Hi Martin, > > Is it possible to return a value from the ajax behavior while responding to > the ajax call? > I'm trying to do something like this in the server side: > > target.appendJavaScript("foo"); > > > > And

Re: Error while calling Wicket from a JavaScript function

2017-01-18 Thread James Selvakumar
Hi Martin, Is it possible to return a value from the ajax behavior while responding to the ajax call? I'm trying to do something like this in the server side: target.appendJavaScript("foo"); > And then try to use it in my JavaScript: var foo = Wicket.Ajax.get({ u: window.callbackUrl }); > //do

Re: Error while calling Wicket from a JavaScript function

2017-01-18 Thread James Selvakumar
Thanks a lot Martin. You're right. I had something else in my code and after I fixed it, I managed to make a ajax call from JavaScript. On Wed, Jan 18, 2017 at 5:07 PM, Martin Grigorov wrote: > There is no variable named 'a' in your code snippet. > It might be another

Re: Error while calling Wicket from a JavaScript function

2017-01-18 Thread Martin Grigorov
There is no variable named 'a' in your code snippet. It might be another problem. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 18, 2017 at 10:04 AM, James Selvakumar wrote: > Hi Martin, > > I tried your suggestion but I'm still

Re: Error while calling Wicket from a JavaScript function

2017-01-18 Thread James Selvakumar
Hi Martin, I tried your suggestion but I'm still getting the same TypeError. On Wed, Jan 18, 2017 at 4:55 PM, James Selvakumar wrote: > Thanks Martin for the super fast reply. I'll try that out. > > On Wed, Jan 18, 2017 at 4:54 PM, Martin Grigorov >

Re: Error while calling Wicket from a JavaScript function

2017-01-18 Thread James Selvakumar
Thanks Martin for the super fast reply. I'll try that out. On Wed, Jan 18, 2017 at 4:54 PM, Martin Grigorov wrote: > var wcall = Wicket.Ajax.get({ u: '${callbackUrl}'}); > should be > var wcall = Wicket.Ajax.get({ u: window.callbackUrl }); > > Martin Grigorov > Wicket

Re: Error while calling Wicket from a JavaScript function

2017-01-18 Thread Martin Grigorov
var wcall = Wicket.Ajax.get({ u: '${callbackUrl}'}); should be var wcall = Wicket.Ajax.get({ u: window.callbackUrl }); Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 18, 2017 at 9:51 AM, James Selvakumar wrote: > Dear Wicket team,

Error while calling Wicket from a JavaScript function

2017-01-18 Thread James Selvakumar
Dear Wicket team, I need to make a call to a Wicket page from my JavaScript function. I followed the guide Calling Wicket from Javascript and managed to define an ajax behavior to respond to the JavaScript call.