Re: OnChangeAjaxBehavior.onUpdate() not called [PARTIALLY SOLVED]

2014-06-12 Thread Lucio Crusca
How about an AjaxBehavior with the onChange event? Assuming you mean AjaxEventBehavior (because I couldn't find any AjaxBehavior class), I tried with change, onChange and onchange strings as event, but none of them seemed to work: the onEvent method was never called. On Jun 11, 2014, at 9:10

Re: OnChangeAjaxBehavior.onUpdate() not called [PARTIALLY SOLVED]

2014-06-12 Thread Martin Grigorov
OnChangeAjaxBehavior is the right way. It uses either 'input' event when supported or 'cut'+'paste'+'keydown' when 'input' is not supported by the browser. Which browser do you use ? You can always use AjaxFormComponentUpdatingBehavior(keyup) but it will fire even when you use keys like ESC, F2,

Re: OnChangeAjaxBehavior.onUpdate() not called [PARTIALLY SOLVED]

2014-06-12 Thread Lucio Crusca
OnChangeAjaxBehavior is the right way. It uses either 'input' event when supported or 'cut'+'paste'+'keydown' when 'input' is not supported by the browser. Which browser do you use ? Tested with IceWeasel 24.4.0, Chrome 33 for Linux and Firefox 27 for Windows. You can always use

Re: OnChangeAjaxBehavior.onUpdate() not called

2014-06-11 Thread Lucio Crusca
Well, by hidden do you mean an input type of hidden or not present on the DOM? I mean that I used jQuery to slideUp() the containing div in the $(document).ready(), so that when the page loads the div is not visible to the user and it becomes visible on some other event.

Re: OnChangeAjaxBehavior.onUpdate() not called

2014-06-11 Thread Martin Grigorov
Is there a request made by the browser to the server when you type something in these input fields ? we need more information to find out where is the problem - at the client side or at the server Martin Grigorov Wicket Training and Consulting On Wed, Jun 11, 2014 at 11:34 AM, Lucio Crusca

Re: OnChangeAjaxBehavior.onUpdate() not called [SOLVED]

2014-06-11 Thread Lucio Crusca
Martin was right, there were Javascript errors, but for some reason the webconsole didn't display them the first time I looked at it. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: OnChangeAjaxBehavior.onUpdate() not called [PARTIALLY SOLVED]

2014-06-11 Thread Lucio Crusca
Martin was right, there were Javascript errors, but for some reason the webconsole didn't display them the first time I looked at it. However the problem is only partially solved. onUpdate() now gets called, but only when the TextField looses focus. I need it to be called on every single

Re: OnChangeAjaxBehavior.onUpdate() not called [PARTIALLY SOLVED]

2014-06-11 Thread Paul Bors
How about an AjaxBehavior with the onChange event? On Jun 11, 2014, at 9:10 AM, Lucio Crusca lu...@sulweb.org wrote: Martin was right, there were Javascript errors, but for some reason the webconsole didn't display them the first time I looked at it. However the problem is only partially

Re: OnChangeAjaxBehavior.onUpdate() not called

2014-06-10 Thread Lucio Crusca
everything looks OK to me check whether there are any JS errors in the browser's Dev Tools console. No errors. Can the fact that the input fields are inside a div that is initially hidden and then slid down via jQuery make a difference?

Re: OnChangeAjaxBehavior.onUpdate() not called

2014-06-10 Thread Paul Bors
Well, by hidden do you mean an input type of hidden or not present on the DOM? On Jun 10, 2014, at 7:03 PM, Lucio Crusca lu...@sulweb.org wrote: everything looks OK to me check whether there are any JS errors in the browser's Dev Tools console. No errors. Can the fact that the input fields

OnChangeAjaxBehavior.onUpdate() not called

2014-06-05 Thread Lucio Crusca
I need to make a calculator like this: input text field x some fixed float value = the result input text field x some other fixed float value = the other result ... and so on for a variable number of rows... I need the user to input a number in one of the input text fields. I need the other

Re: OnChangeAjaxBehavior.onUpdate() not called

2014-06-05 Thread Martin Grigorov
Hi, On Thu, Jun 5, 2014 at 9:26 PM, Lucio Crusca lu...@sulweb.org wrote: I need to make a calculator like this: input text field x some fixed float value = the result input text field x some other fixed float value = the other result ... and so on for a variable number of rows... I need