Replacing OnDomReadyHeaderItem with OnLoadHeaderItem (class DatatablesBehavior) seems to solve your problem. It's likely that your script (the one from DatatablesBehavior) depends on some other code and it must wait for it to be loaded before being executed.
Im having a problem with Javascript execution order that I could use some
help with.  I made a quickstart here:
https://dl.dropbox.com/u/107816727/quickstart.tar.gz

Basically, this is a Wicket DefaultDataTable, with an embedded
AjaxEventBehavior, overlaid with a Datatables.net JS behavior (
www.datatables.net).

What seems to be happening is that the Datatables.net JS is executing
before the Wicket AjaxEventBehavior JS, and in so doing, it paginates the
table and removes a couple of IDs that Wicket then cannot find.
I thought the default JS execution order was children first, then parent,
so I was expecting the AjaxEventBehavior JS to execute first and then the
Datatables.net JS (which is on the parent DefaultDataTable)

To reproduce simply click any of the "Click Me" cells in the table.

Any suggestions would be most appreciated,

Regards

Nick



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to