If creating a package resource is a pain, shouldn't we improve that? Packaged resource are common, aren't they?
Juergen On 2/21/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > the difference is the overhead of creating a package resource which is a > pain ( you have to bind the resource, keep the refernece, create an > initializer). this can indeed be a neat feature for pages that have a lot of > javascript, but i do think that this is an edge usecase. > > -Igor > > > > On 2/21/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > > > > First I thought, good idea. But than, what is the difference between > > putting the javascript into a js file (like you suggest) and adding > > <script ..href="my.js"/> to the head section. > > > > Actually you could try to implement it yourself. (Ajax-)behaviors are > > kind of similar, as they add code to a header section as well. > > > > Juergen > > > > On 2/21/06, Mark Derricutt <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > > > > I just had an idea that I thought I'd throw out there for disucssion > and/or > > > flamage ;-) > > > > > > At first I found wickets class/html-in-package scheme kinda awkward but > now > > > I'm used to it I like it. Anyway, an idea I just had was to extend this > a > > > bit further and breaking out the javascript used for a page to its own > file. > > > So instead of having: > > > > > > <html> > > > <body> > > > <wicket:head> > > > <script type="text/javascript"> > > > function submitWork(form, e) { > > > .... > > > > > > inside your component/page, you could extract the script to a .js file > named > > > the same: > > > > > > MyPage.java > > > MyPage.html > > > MyPage.properties > > > MyPage.js <-- added > > > > > > This wouldn't replace the use of <wicket:head/> but complement, if such > a > > > MyPage.js is found, it could be injected into the <head/> of the > rendered > > > page automatically. > > > > > > Thoughts? > > > > > > -- > > > i like my video games - mamma said they are gonna melt my brains > > > i like my video games - i don't care what daddy said; they're my reality > > > - henning pauly > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user