Thanks a lot Martin! The root cause is: event name is lowercased :(
So this failed: $('#rowId').trigger('doubleClickEvent'); And this passed: $('#rowId').trigger('doubleclickevent'); On 22 October 2014 15:32, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi Maxim, > > Since version 6.0.0 Wicket uses JavaScript event registration instead of > generating element attributes. > So for each usage of AjaxEventBehavior (and its specializations) Wicket > will generate something like Wicket.Ajax.ajax({....}) > > I think in your code you are missing: item.setOutputMarkupId(true). > Make sure the HTML element for 'item' has a unique id and there is > Wicket.Ajax.ajax({c: sameId, ...}) in the page content. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Oct 22, 2014 at 11:27 AM, Maxim Solodovnik <solomax...@gmail.com> > wrote: > > > Hello All, > > > > I'm trying to migrate huge project from wicket 1.4 to wicket 6 > > > > In old code I have code like this: > > > > DataView<ProjectListItem> listView = new > > DataView<ProjectListItem>("projectList", sdp) { > > protected void populateItem(final Item<ProjectListItem> item) { > > item.add(new AjaxEventBehavior("doubleClickEvent") { > > protected void onEvent(AjaxRequestTarget > target) { > > } > > } > > } > > } > > > > after this each table row generated has "doubleClickEvent" attribute with > > callback and I has able to call it. > > > > currently nothing is generated :( code like > > "$('#rowId').trigger('doubleClickEvent');" also has no effect :( > > > > what am I doing wrong? > > > > ps I was unable to find guide on custom events :( > > > > -- > > WBR > > Maxim aka solomax > > > -- WBR Maxim aka solomax