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 [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