Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multiple component libraries that use jQuery

rdelaplanteJul 11 2012
I'm using PrimeFaces in a JSF2 application and recently developed some of my own composite components. My components use jQuery, but I had to make them not output the jQuery script file because PrimeFaces has already loaded it. If my components were to be used elsewhere then I'd need to uncomment that.

Is there a proper way to have multiple component libraries load a JavaScript library only once, even if all of the component libraries have their own copy? Ideally this would be something automatic, not a customization like a loadJquery="false" attribute on every component.

FYI I'm using JSF RI on GlassFish 3.1.2.

Thanks,
Ryan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2012
Added on Jul 11 2012
0 comments
180 views