Dave,

I hope you don't think you've taken on a lifetime commitment here;-)

I may be misunderstanding whats happening here, but here goes..

I have a really simple page that include the sx:head tag and an sx:div. Now
I do not not see any call to the target action for the div tag. So I started
looking at the page source and the template sources to see what the
templates for sx:head and sx:div were up to.

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.
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?

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.

Man I would love to get this working. It is just what my app need.
Paul B.




newton.dave wrote:
> 
> --- paulbrickell <[EMAIL PROTECTED]> wrote:
>> what the head template outputs are some links (see my earlier post for
>> the
>> details) to application/struts/* js and css files.
>> 
>> So what I am trying to do is assemble the components that the head
>> template
>> requires and put them in the right place. It seems they are many and
>> distributed across multiple jars.
> 
> Mmm, all of the deps should be in the dojo-plugin and struts core, IIRC.
> 
> Are there specific issues you're running in to?
> 
> 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-tp14030983p15136127.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