'inputchange' is 'input' for non-IE browsers and cut/paste for IE If just 'change' does the job then use AjaxFormComponentUpdatingBehavior("change"). We have to improve the javadoc of OnChangeAjaxBehavior On Dec 20, 2014 2:13 PM, "guillaume.mary" <guillaume.m...@interview-efm.com> wrote:
> Hi, > > I agree, while typing 'change' is not fired. But 'inputchange' is. (it's an > implementation of Wicket, its not an native browser event) > > So I refined my used case and my problem appears on 'number' text field, > when the user uses the arrows to increment or decrement the value: both > events are fired (at least on FF) > > Please note that JQuery is not only suffiscient since its doesn't support > 'inpuchange', but Wicket does. > > I'm trying to create a JSFiddle but as I said it needs Wicket Javascript > librairies to demonstrate and I don't have any server that can server those > resources at the moment. > > > > > Martin Grigorov-4 wrote > > Hi, > > > > On Wed, Dec 17, 2014 at 12:26 PM, guillaume.mary < > > > guillaume.mary@ > > >> wrote: > >> > >> Hi all, > >> > >> With WICKET-5711 OnChangeAjaxBehavior now listen both "change" and > >> "inputchange" on TextField. Hence when you type in the TextField, the > >> behavior is called twice because both events are fired by the browser. > >> It's > >> > > > > 'change' event shouldn't be fired when typing. > > Just tried it at http://jquery.com/. In the JS console executed: > > $('input[name=s]').change(function() > > {console.log('BOOM')}) > > It doesn't log while typing in the search field. It logs when I leave the > > text field. > > > > Which browser ? OS? > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/OnChangeAjaxBehavior-listened-event-modified-in-1-6-18-tp4668814p4668872.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >