Change version of dojo in my project
Hi all I have a question for you can help me
I am using sts-2.3.2.RELEASE and let me know
How is what verision I am using dojo?
and how I can change to another version
Thanks
Change version of dojo in my project
Hi all I have a question for you can help me
I am using sts-2.3.2.RELEASE and let me know
How is what verision I am using dojo?
and how I can change to another version
Thanks
Dojo is being packaged by spring-js-resources-x.jar, which belongs to Spring Webflow.
I am using 2.2.1.Release in my ROO project. Unfortunately none of the dojo javascript files includes a version number as far as I know.
So either try to figure out which version of Dojo is in this package (good luck!) or otherwise you can set the path to the Dojo version of your choice by modifying load-scripts.tags.
I tried dojo.version, which is a property that tells you the version of Dojo itself. However, it came back with a development # and is the same between the one embedded in Roo 1.1.0 and 1.1.1.
Going off the reservation, I suppose you could just comment out that dependency in Maven, and mount your own in a Jar, or just copy to webapp/js or something, , and then add an entry to the mvc:resources tag in the webmvc spring config file to point to the root of the directory that contains dojo.
Then the paths should still match, but you'd get the version you want.
I would think that Roo would upgrade the dependencies on the next update, so you may need to go back to pom.xml and hide that jar.
Ken
Ken Rimple
Chariot Solutions
email: krimple@chariotsolutions.com
work: www.chariotsolutions.com/education
personal: www.rimple.com
Author: Spring Roo in Action (Manning)
MEAP Site: manning.com/rimple
Actually, an update...
I did download a separate copy of dojo 1.5, and expanded it to src/main/resources/META-INF/frameworks/dojo-1.5 - so that I have a prefix URL, and then mounted this as my mvc:resources setting:
So, now I can use:Code:<resources location="/, classpath:/META-INF/web-resources/, classpath:/META-INF/frameworks/" mapping="/resources/**" />
And then I don't have to comment out the Spring Javascript resource, because it would live in /resources/dojo/dojo.js without the prefix.Code:<spring:url value="/resources/dojo-1.5/dojo/dojo.js" var="dojo" />
Ken
Ken Rimple
Chariot Solutions
email: krimple@chariotsolutions.com
work: www.chariotsolutions.com/education
personal: www.rimple.com
Author: Spring Roo in Action (Manning)
MEAP Site: manning.com/rimple
The "development #" is the dojo SVN revision number, which you can compare by checking out e.g. http://svn.dojotoolkit.org/src/tags/release-1.x.x and then looking at the "Last Changed Rev". The number for dojo 1.5.0 is 22487, for example.