dev@javaserverfaces.java.net

Re: [mojarra-trunk] Resource loading

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Fri, 17 Apr 2009 02:03:32 -0700

On 4/15/09 12:38 PM, Michael Kurz wrote:
> Hi,
>
> I'm currently playing around with resources and libraries in Mojarra
> trunk and found someting that seams weird to me. I tried to create a
> library in META-INF/resources with a css and an image. Worked fine.
> Then I tried to "overwrite" the image in /resources in a new version
> of the library. Works too, BUT the css, which I did not overwrite, is
> no longer found.
>
> It seems that ResourceManager.doLookup() first gets the library with the
> highest version number in /resources and if one exists uses this for
> all resources in this library. This means that it would be necessary to
> overwrite the complete library if I want to change one resource out of
> it.
>
> According to the algorithm for createResource() in section 2.6.1.4 of
> the spec (PFD) I would say it should be possible to overwrite single
> files in /resources from a library in the classpath. But I might
> misinterpret it.
Would you please log an issue?

Thanks,
-rl
>
> I would be interested in what you think about that issue!
>
> rgards
> Michael Kurz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>