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) {
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',
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);