Does it realy solve your problem? Lets say you downloaded two
ready-made and re-usable components and both depend on a js script
which depends on yet another js script, like you explained. Should
each components register its js scripts with the application? How do
you make sure that js scripts with the same name realy contain the
same content? What if the content is the same, but the file name is
not? How do want to handle that over time most likely you update your
js script? I predict that you'll run into exactly the dependency
problems you try to solve. I wonder if downloading (and locally
caching) the same js script (because of different urls) twice or may 3
or 4 times, realy is such a big problem.

Hmm, did you mention references (or alias) already? What about an
approach where the re-usable components referes to a js reference and
the application throws an exception if the reference has not yet been
defined. This way each re-usable component may define its own
references with there own names and while plumbing the components to
an application, your application must provide a mapping from alias to
js filename.

Juergen

On 10/3/05, Scott Sauyet <[EMAIL PROTECTED]> wrote:
> Johan Compagner wrote:
> > Yes it would be nice to have some way to register links (css and js) to
> > a page that it will combine and render
> >
> > But i think you can do this pretty easy youreself. [ ... ]
>
> Your suggestion make sense, and I'll probably try that this week.  I'll
> let  you know how it goes.
>
>    -- Scott
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to