using wicket ajax to add components containing javascript

2009-10-23 Thread Jason Novotny


Hi,

   I'm using AjaxLinks all over the place to refresh a container that 
contains custom components that themselves also use javascript. So what 
happens is  when I do target.add(myCustomComponent) that the javascript 
is not really in the page, its in the rendered markup so it often just 
doesn't work. Has anyone else had this problem or knows of a way to deal 
with it? Maybe I should put all the components javascript  as an include 
at the top, but I was hoping to keep it self-contained with the 
component itself for maximum reusability.


   Thanks, Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: using wicket ajax to add components containing javascript

2009-10-23 Thread Pedro Santos
I think it is related:

http://markmail.org/search/?q=list%3Aorg.apache.wicket.users+from%3A%22Pedro+Santos%22+ajaxrequesttarget+date%3A200909+#query:list%3Aorg.apache.wicket.users%20from%3A%22Pedro%20Santos%22%20ajaxrequesttarget%20date%3A200909%20+page:1+mid:vuen2437dyh6a5tw+state:results

On Fri, Oct 23, 2009 at 8:45 PM, Jason Novotny jason.novo...@gmail.comwrote:


 Hi,

   I'm using AjaxLinks all over the place to refresh a container that
 contains custom components that themselves also use javascript. So what
 happens is  when I do target.add(myCustomComponent) that the javascript is
 not really in the page, its in the rendered markup so it often just doesn't
 work. Has anyone else had this problem or knows of a way to deal with it?
 Maybe I should put all the components javascript  as an include at the top,
 but I was hoping to keep it self-contained with the component itself for
 maximum reusability.

   Thanks, Jason

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Pedro Henrique Oliveira dos Santos