[xwiki-dev] OC4J - JavaScript

Ludovic Dubost ludovic at xwiki.com
Thu Aug 23 13:07:56 CEST 2007


adoro a écrit :
> I had no problem to install Xwiki in the Tomcat environment.
>
> But when I deployed Xwiki under OC4J followed the OC4J Installation
> instructions
> ("http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationOC4J"), 
> javascript did not work properly – it looks like the path to external  
> .js-files couldn't be found.
> Both IE and Firefox show javascript errors nearly on each page, although
> JavaScript is not deactivated in browser.  
>
> I can open the home page, go to xwiki/bin/admin/XWiki/XWikiPreferences,
> upload  xwiki-enterprise-wiki-1.1~.xar, but cannot expand it to choose the
> files I want to import.
>
> I have tried to include some JavaScript functions from import.js  direct in
> the importinline.vm  source – it works fine.
>
>   

/xwiki/skins/albatross/import.js
is a file based path to import.js


/xwiki/bin/skin/skins/albatross/import.js
will do a redirect to the previous one if it exists, otherwise it will use the import.js from the default skin (which is actually albatross) or /xwiki/templates/import.js

Can you access these content if you put them in your browser URL ?
Maybe OC4J has a problem for making files in the war accessible at the right urls

Ludovic


> What's the difference between:
> <script type="text/javascript"
> src="$xwiki.getSkinFile("import.js")"></script> - it generates path to
> /xwiki/skins/albatross/import.js
>
> and
> <script type="text/javascript" src="$xwiki.getSkinFile("import.js",
> true)"></script> - generates path to
> /xwiki/bin/skin/skins/albatross/import.js
>
>
> Why only some paths to js- and css files are defined with the parameter
> “true”?
> Is there something specific to keep in mind concerning path under OC4J?
> Should I make additional entries in some xml-files?
>
> Any tips please?
>
> Regards,
> adoro 
>   


-- 
Ludovic Dubost
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost 
AIM: nvludo Yahoo: ludovic

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ludovic.vcf
Type: text/x-vcard
Size: 301 bytes
Desc: not available
Url : http://lists.xwiki.org/pipermail/devs/attachments/20070823/cc2eda4c/attachment.vcf 


More information about the devs mailing list