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:
The reference to the ScrollPane.js is succesfully resolved since a http://localhost:8080/myAppContext/r.../ScrollPane.jsCode:<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>
returns the contents of ScrollPane.js.
I have the following code snippet:
The alert message is never displayed.Code:<div id="sp_div"> <script type="text/javascript"> dojo.require("dojox.layout.ScrollPane"); var sp = new dojox.layout.ScrollPane({orientation: "vertical"}); alert("Scroll Pane " + sp); </script> </div>
Any help will be greatly appreciated !
Cheers


Reply With Quote
