autolinks at least until now are limited to all tags with href attributes. And you are right, the only thing autolink does is to create a Resource and bind it. This of course can be done manually as well. If I were you I'd put it into something like ScriptLink for later reuse. And I agree we should add something like to core or at least extension.
Juergen On 9/1/05, Scott Sauyet <[EMAIL PROTECTED]> wrote: > Hi folks, > > I'm still struggling through when I have the time. I'm missing > something basic. I can now (at least in 1.1-b4) use a CSS file as a > resource in the same directory as the class file by wrapping this: > > <.link href="test.css" .../> > > like this: > > <.wicket:link> > <.link href="test.css" .../> > </wicket:link> > > How do I do the same thing with a javascript resource? This: > > <.wicket:link> > <.script src="test.js" .../> > </wicket:link> > > doesn't work. The "src" attribute is not updated by the wicket:link > wrapper. > > I'm sure this is something simple. Or do I have to do some > PackageResource.bind() work somewhere? > > -- Scott > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
