Hi all,
Just want to ask if we can update wicket component via javascript or not. The
case here is to repaint a datatable
Shadowbox.init({
handleOversize: drag,
onClose : function () {
//repaint the component here
}
});
Please advise. Thank you.
Hi,
You can do something like:
theComponent.add(new AjaxEventBehavior(repaint) { public void onEvent(ART
art) {art.add(getComponent())} })
the JS would be: $(selectorToTheTable).triggerHandler(repaint);
Martin Grigorov
Wicket Training and Consulting
On Mon, May 26, 2014 at 7:44 PM, Noven