Closed GoogleCodeExporter closed 9 years ago
OK, I was just this line in my <head> section:
<script type="text/javascript" src="jquery/jquery.min.js"></script>
which referenced jQuery-1.9.1.min. I read in another page that the plugin kept
references to jQuery and jQueryUI. Currently, for 3.5.1 I checked that
jQuery was 1.8.3 and jQueryUI was 1.9.2.
I´m afraid I will have to use noConflict in some pages to support the plugin:
http://api.jquery.com/jQuery.noConflict/
Any other easier way to solve this problem?
Original comment by aloplo...@gmail.com
on 20 May 2013 at 9:29
You can simply overwrite the head.ftl template.
http://struts.apache.org/release/2.3.x/docs/template-loading.html
Original comment by johgep
on 29 May 2013 at 4:58
OK, that did the trick ;) Thank you very much.
This is what I did:
1 - Copy /template/jquery/head.ftl to the same folder in my classpath of the
WAR file.
2 - Change:
<#if !jQueryVersion?? >
<#assign jQueryVersion="X.Y.Z">
</#if>
Where X.Y.Z is the desired version.
Insert:
<#-- <script type="text/javascript"
src="${javaScriptBasePath}js/base/${jqueryFile}"></script> -->
<script type="text/javascript" src="jquery/${jqueryFile}"></script>
3 - Then, place the desired JS inside the src folder. In my case, the jquery
folder of the classpath -> myProject.war/jquery/jquery-1.9.1.min.js
4 - Check with FireBug which version I was currently using: jQuery().jquery -->
1.9.1
Is it possible to apply this patch also to jQuery UI or does it require more
changes than a simple directory change?
Thanks again.
Original comment by aloplo...@gmail.com
on 29 May 2013 at 8:32
Ouch, Firebug detected that $.browser is not defined.
I don´t know if it is really a big problem :S
http://stackoverflow.com/questions/5889279/browser-not-defined
(Please note that since the time of posting, this property has been removed in
jQuery 1.9.)
Original comment by aloplo...@gmail.com
on 29 May 2013 at 9:35
-> Moved to struts2-jquery plugin version 3.6.0 with newer jQuery and jQueryUI
libraries.
Original comment by aloplo...@gmail.com
on 14 Jun 2013 at 10:14
Original issue reported on code.google.com by
aloplo...@gmail.com
on 20 May 2013 at 7:41