Wicket 6.0 and Javascript Event Registration question

2012-01-30 Thread Thomas Götz
Just a thought about the upcoming changes to Wicket's Javascript event registration mechanism in Wicket 6.0 (instead of inline JS events): we have several Behaviors that provide Javascript in which we register to JS events, e.g. 'onblur'. Now I have a Component that additionally has an

Re: Wicket 6.0 and Javascript Event Registration question

2012-01-30 Thread Martin Grigorov
Hi, The new code registers listeners with jQuery's on() method which uses internally addEventListener() (IE9 and others) and attachEvent() (IE8 and less). So you need to execute your JS code after Wicket's. Wicket executes its bindings when the DOM is ready, so you must be careful that your

Re: Wicket 6.0 and Javascript Event Registration question

2012-01-30 Thread Thomas Götz
This will cause quite some trouble for the application I'm currently developing. Example: we have a Behavior that puts input hints on several textfields (e.g. dd/mm/ for day input fields). The Behavior provides a JS file in which we register for the submit event of the containing form and

Re: Wicket 6.0 and Javascript Event Registration question

2012-01-30 Thread Martin Grigorov
Hi Thomas, On Mon, Jan 30, 2012 at 10:40 PM, Thomas Götz t...@richmountain.de wrote: This will cause quite some trouble for the application I'm currently developing. Example: we have a Behavior that puts input hints on several textfields (e.g. dd/mm/ for day input fields). The