Results 1 to 5 of 5

Thread: Change version of dojo in my project

Hybrid View

  1. #1

    Default Change version of dojo in my project

    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

  2. #2
    Join Date
    Oct 2010
    Location
    Almere, The Netherlands
    Posts
    32

    Default

    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.

  3. #3
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Default

    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

  4. #4
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Default

    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:

    Code:
    <resources location="/, classpath:/META-INF/web-resources/, classpath:/META-INF/frameworks/" mapping="/resources/**" />
    So, now I can use:

    Code:
    <spring:url value="/resources/dojo-1.5/dojo/dojo.js" var="dojo" />
    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.

    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

  5. #5

    Default dojo version

    Quote Originally Posted by krimple View Post
    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.
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •