Re: Problem with JavaScript when using Wicket AJAX Components

2007-12-21 Thread Matej Knopp
Sorry, it's onRendered in AbstractBehavior. -Matej On Dec 21, 2007 8:13 AM, thomas jaeckle [EMAIL PROTECTED] wrote: Matej Knopp-2 wrote: Try this (it's a bit hacky though): datatable.add(new AbstractBehavior() { public final void afterRender(final Component component) {

Re: Problem with JavaScript when using Wicket AJAX Components

2007-12-20 Thread thomas jaeckle
I think I understand now, why the tooltips don't appear. The JavaScript is initialized when the Page is initialized. At this time the DataTable inside the AjaxLazyLoadPanel is not there. The JavaScript iterates over all elements I have specified ('input', 'td', 'tr', 'textarea', 'select', 'span',

Re: Problem with JavaScript when using Wicket AJAX Components

2007-12-20 Thread Matej Knopp
Try this (it's a bit hacky though): datatable.add(new AbstractBehavior() { public final void afterRender(final Component component) { AjaxRequestTaget target = AjaxRequestTarget.get(); if (target !- null) { target.appendJavascript(your javascript to initialize the tooltips);