Announcement Announcement Module
No announcement yet.
How to use dojox in Spring Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to use dojox in Spring

    Hallo everyone,
    I have already read the previous contributions describing how to
    use dojo extensions (dojox) in Spring but I am still not able to get it work for me.

    Here are the steps made by myself so far:

    Downloaded the latest dojo release (1.4.0) that is distributed with the dojox library.
    Deployed the contents of the dojox folder directly under my webapp directory (not packaged).
    I wanted to give the SrcollPane a try so so I included ScrollPane.js into my default.jspx (I use Spring Core 3.0 RC2 and ROO 1.0.0 RC3)
    with the following lines:
    <spring:url value="/resources/dojox/layout/ScrollPane.js" var="dojox_sp_url"/>
    <script src="${dojox_sp_url}" type="text/javascript"><!-- //required for FF3 and Opera --></script>
    The reference to the ScrollPane.js is succesfully resolved since a http://localhost:8080/myAppContext/r.../ScrollPane.js
    returns the contents of ScrollPane.js.

    I have the following code snippet:
    <div id="sp_div">
      <script type="text/javascript">
          var sp = new dojox.layout.ScrollPane({orientation: "vertical"});
        alert("Scroll Pane " + sp);
    The alert message is never displayed.

    Any help will be greatly appreciated !