you can already sorta do this our iheadercontributor's iheaderresponse has renderOnDomReadyJavascript and renderOnLoadJavascript so you can put javascript that will be executed after page loads..
-igor On Nov 30, 2007 4:29 AM, William Hoover <[EMAIL PROTECTED]> wrote: > While your on the subject... shouldn't there be a forJavaScript that is > external from the HeaderContributor that does a more intelligent insertion of > the script farther down the dom tree to increase performance > (http://developer.yahoo.com/performance/rules.html#js_bottom)? > > > -----Original Message----- > From: Johan Compagner [mailto:[EMAIL PROTECTED] > Sent: Friday, November 30, 2007 2:35 AM > To: [email protected] > Subject: Re: [RFE] HeaderContributor.forFavicon(Reference) > > > I dont think there is any thing magical at the headerresponse if you > ask me. Do remeber that when doing header responses you have to > override that method on component anyway and then you are getting that > headerresponse param. > > But maybe i dont see the complete picture here what you are > describing. So how does XxxxResource.headerContribution() method look > like? What params does it get? How does it get the right response > object? (it has to be an implementation of (Ajax)HeaderResponse) > > Johan > > On 11/29/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > I don't quite understand this... > > "Instead of having to know a ton of classes, you just have to know this > > one." > > > > I really struggled with wicket originally when trying to do these > > header contributions. I was using the IDE and searching for > > "Javascript*" or "CSS*" and nothing relevant came up. Instead, I had > > to dig through tutorials to find out how to do this. IMO, it would be > > much more straightforward for users to use a static method on the > > related class instead of knowing about the "magical" HeaderContributor > > object... > > > > Just my two cents... > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
