Yep, that works exactly like it says on wiki. out of curiosity just how does
that automagic work? How on earth does the path
"/whatever/struts/css_xhtml/validation.js" get resolved to a jar? Also I
guess that the baseRelativePath attribute is a bit of red-herring.

The restructuring between version 0.4.x and 1.0.x of dojo is pretty radical.
No way they are compatible.

I did just check out the source and start a build. But frankly the newer
features of Dojo I am losing is a bit of a showstopper. I may well have to
drop a back a version of Struts and roll my own solution. It's such a shame
I would love to get all that great stuff for free.

There is simply no way I can convince my employer I can contribute a
solution on their time but I have to think my best solution would be to do
it anyway.

Thanks for all your help here,
Paul B.


newton.dave wrote:
> 
> --- paulbrickell <[EMAIL PROTECTED]> wrote:
>> it appears that sx:head creates links for various resources...
>> 
>> <script language="JavaScript" type="text/javascript"
>> src="/application/struts/ajax/dojoRequire.js"></script>
>> <link rel="stylesheet" href="/application/struts/xhtml/styles.css"
>> type="text/css"/>
>> <script language="JavaScript" src="/application/struts/utils.js"
>> type="text/javascript"></script>
>> <script language="JavaScript"
>> src="/application/struts/xhtml/validation.js"
>> type="text/javascript"></script>
>> <script language="JavaScript"
>> src="/application/struts/css_xhtml/validation.js"
>> type="text/javascript"></script>
>> 
>> None of which exists in my application. So I am guessing (never a good
>> idea) that I need to compose these bits from the distro.
> 
> These are all in the struts-core JAR file, served statically via S2.
> 
>> You are right these components do exists in the libraries. Am I right in
>> thinking I need to copy these into my web application in the structure
>> required by the links in the head template?
> 
> Nope; they should be included automagically. See below.
> 
>> Also I get various javascript errors...
>> 1. Could not load 'dojo.io.BrowserIO'; last tried './io/BrowserIO.js'
>> 2. dojo.hostenv has no properties
>> 3. djConfig.searchIds has no properties
>> 
>> These I suspect are related to the version of dojo I am using (1.0.2
>> which
>> is the latest release). The path io.BrowserIO.js for example just doesn't
>> exists.
> 
> That's probably going to be an issue; the S2 Dojo plugin is using
> 0.4.mumble,
> which is included in the plugin JAR itself. Using a different Dojo version
> is
> probably a Bad Idea, although I haven't actually tried to know what any
> potential issues would be.
> 
> If you're set on using S2.1 and its Dojo plugin I'd really recommend just
> getting the complete source via Subversion and build via Maven rather than
> trying to put all the pieces together manually.
> 
> All the JavaScript is included in either the S2 core JAR or the Dojo
> plugin
> JAR; mixing Dojo versions is probably bad.
> 
> d.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--dojo-plugin---I-don%27t-find-the-resources-tp14030983p15136841.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to