Erik van Oosten wrote: > Is there a way to force header contributions to load in a certain order?
Sort of. HeaderContributors are designed so that if you add them twice, they only render once (so you can have multiple components on the page share the same contributor). 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. :-( 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. :-) > 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: Event.observe(window, "onload", function() { doStuff(); }); I doubt it'll fix your problem though. Regards, Al ------------------------------------------------------------------------- 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