dev@javaserverfaces.java.net

Re: ResourceHandler problem in Mojarra 2.1.8 and above

From: Stephen More <stephen.more_at_gmail.com>
Date: Tue, 23 Oct 2012 09:27:51 -0400

Here is a new piece to the puzzle....It seems that if I remove weld
1.1.10 and MyFaces CODI 1.0.5 from my webapp, resource loading works
fine, like it did in Mojarra 2.0.9 and 2.1.7.

-Stephen More

On Fri, Oct 19, 2012 at 12:07 PM, Stephen More <stephen.more_at_gmail.com> wrote:
> Perhaps related but not the same issue...there are only 2 files that I
> can find that have been annotated with
> javax.faces.application.ResourceDependency:
>
> org.primefaces.component.behavior.ajax.AjaxBehavior extends
> javax.faces.component.behavior.ClientBehaviorBase
> org.primefaces.component.behavior.printer.PrinterBehavior extends
> javax.faces.component.behavior.ClientBehaviorBase
>
> There are no extending classes that have annotations of ResourceDependency.
>
> -SM
>
> On Fri, Oct 19, 2012 at 11:35 AM, Edward Burns <edward.burns_at_oracle.com> wrote:
>>>>>>> On Fri, 19 Oct 2012 11:19:55 -0400, Stephen More <stephen.more_at_gmail.com> said:
>>
>> SM> I recompiled prime faces with the following change:
>> SM> - @ResourceDependency(library="primefaces", name="jquery/jquery.js"),
>> SM> - @ResourceDependency(library="primefaces", name="primefaces.js")
>> SM> + @ResourceDependency(library="primefaces",
>> SM> name="jquery/jquery.js", target="head"),
>> SM> + @ResourceDependency(library="primefaces",
>> SM> name="primefaces.js", target="head")
>>
>> SM> Now jquery is inside of <HEAD/> but I think the javascripts are out of
>> SM> order. i.e. primefaces.js is rendered before jquery/jquery.js.
>>
>> SM> What controls the order in which ResourceDependency gets executed ?
>>
>> Please take a look at < http://java.net/jira/browse/JAVASERVERFACES-2552
>>>. While this isn't specifically linked to ordering, I want to make
>> sure you're not hitting this one.
>>
>> Ed
>>
>> --
>> | edward.burns_at_oracle.com | office: +1 407 458 0017
>> | homepage: | http://ridingthecrest.com/