Al Maw wrote: > Unfortunately, wicket-ajax.js is rendered as a kind-of composite > HeaderContributor, so you can't just go like this: > add(HeaderContributor.forJavaScript(AbstractDefaultAjaxBehavior.JAVASCRIPT); > > ...as you'll get two of them. :-( > Yes, I noticed and saw the code. Are functions in wicket-ajax.js not intended for public use? > This may well work, actually, but it's not very nice. > We should probably get AbstractDefaultAjaxBehaviour to add its stuff as > proper HeaderContributors so that this works. > > Would you like to open a JIRA issue for this? I expect it affects both > 1.3 and 2.0, and won't be fixed for the 1.2.x branch. :-) > https://issues.apache.org/jira/browse/WICKET-256 >> Or, is there a way to run the initialization when all javascript has >> been loaded? >> > You can use the window.onload event and hook into that. If you're using > prototype, something like.... > I am not using prototype. I 'fixed' it with by hacking the onload attribute on one of my templates.
Thanks Al, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ ------------------------------------------------------------------------- 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