On page 232 of Pro Wicket javascript is dynamically added in the head
element.
The following method is used in the ConfirmDeleteBehavior:
   public void bind(final Component component)
   {
       this.component = component;
       component.setOutputMarkupId(true);
       component.add(TextTemplateHeaderContributor.forJavaScript
(getClass(),
                                                                 "
confirmdelete.js",

variablesModel));
   }

The first time the page is renderer I can see the javascript being added,
however the second time the javascript is nowhere to be found. which of
course results in a javascript error when clicking a button that has an
onclick added by the same behavior.

How can I fix this?

Robert
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to