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

Reply via email to