I have already tried resource mapping. After resource mapping, it's using same version of JQuery with same URL. But still overwriting my JQuery plugins.
Any help will be appreciated
Hi, do it step by step following the article
and your resource mapping file should be:
<h:outputScript name="jquery.js" library="org.richfaces.staticResource"/>
Path of jquery.js:
If you had read the article Re-routing JSF resource requests with RichFaces Resource Mapping, you would pay attention to one of the replies:
this is really the issue I have introduced with limiting resources to specific libraries, thanks for pointing to that!
I have reported it here: https://issues.jboss.org/browse/RF-11888
Currently, as Grzegorz said, you need to move all the resources to some of those libraries, it means e.g.:
# the configuration for mapping:
# where should the resource be located:
This doesn't help. As I mentioned before, resource mapping can help in using same version of JQuery from the same URL. But still it will override JQuery plugins linked to first mention of jquery library.
I think I have to raise a jira for this issue. I think richfaces should provide a configuration that can be used to restrict any reload of static resources.
I agree with jboss fan99. We need to find a way to determine the sequence of the JS libraries in Richfaces 4.2.3+. The JIRA issue is recorded: https://issues.jboss.org/browse/RF-12537
(Awkward, I know. i.e. "workaround")
Solutions: If any solutions occur, please post to this thread.