Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

jquery DataTable + wicket Cannot bind a listener

$
0
0
Hi,

I'm using latest jquery DataTable with a ListView and in wicket:head of
the page, I initiate the DataTable:

$(function () {
$('.datatable_executed').dataTable({
'lengthChange': false,
'dom': '<"top"<"doc-filter"><"holder"ip>>t',
"language": {"info": "_START_-_END_ of _TOTAL_"},
"aaSorting": [],
'iDisplayLength': 12
});
});

It all looks good, however because one of my columns contains AjaxLinks,
I get an error from my wicket debug window with the following:
"Wicket.Ajax: Cannot bind a listener for event "click" on element
"elementId" because the element is not in the DOM"

The thing is the links seem to actually work on the first page, but when
I click -> to go to the next page the links don't work. Has anyone
experienced this before or have any idea how I can debug this?

Thanks, Jason

Viewing all articles
Browse latest Browse all 5648

Trending Articles