Sorry, should have been more specific.

I'm already using the appendJavaScript method and it works like a charm.

What I'm really after is whether there is a way to set default behavior for
ALL AjaxRequestTargets. I have some client-side javascript which does some
DOM rewrites once the page is rendered, and I want to ensure that this
function is called any time I do an ajax replacement of a component.

Since the AjaxRequestTarget doesn't seem to be created by a factory (or
extensible really), I'm not sure how I would go about this.

Thoughts?


Al Maw wrote:
> 
> dukejansen wrote:
>> What's the best way to add some JavaScript code to be called after a
>> component is updated via Ajax?
> 
> See AjaxRequestTarget#appendJavaScript(String)
> 
> Al
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Add-JavaScript-call-after-Ajax-update--tf3329353.html#a9261659
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to