Have you tried putting that javascript behavior into an wicket
behavior attached to the component?
something like...
textbox.add(new MyJQueryCustomBehavior())
Am 30.04.2008 um 09:41 schrieb carloc:
Hi,
I'm using JQuery together with Wicket. I have this problem that
whenever I
update a component through ajax, the behaviors I attached using jquery
disappear already.
For example I have a textbox which has this
$('textbox').click(function() {
alert('hello')
})
This would work while the textbox has not yet been updated.
But whenever the component has been replaced by Wicket
target.addComponent(textbox)
It will be replaced by a new component and the behavior that was
binded is
no longer there.
Is there a workaround to this?
Thanks
Carlo
--
View this message in context:
http://www.nabble.com/Jquery-Attached-Behaviors-Disappearing-During-Ajax-Calls-tp16977307p16977307.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]