Looks like a misconfiguration but if you must, the Shell component
http://tapestry.apache.org/tapestry4.1/components/general/shell.html
accepts an ajaxDelegate parameter that is rendering those...
The default implementation for that delegate is
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/dojo/AjaxShellDelegate.java?view=log
You can take a look and change as needed.
Peter Stavrinides wrote:
Can anyone point me in the right direction with this, I don't believe
that this can not be done.
Peter Stavrinides wrote:
Hi Everyone
I am trying to deploy a tapestry 4.1 application into a production
environment (on Tomcat 5.5). When the Tapestry Shell component
injects the various dojo scripts into my pages it uses an absolute
URL using the server IP address and port, there must be a way to
switch this off and use a relative path instead.
For Example:
<script type="text/javascript">
djConfig = { isDebug: true, debugContainerId:'debug',
baseRelativePath:"http://192.168.51.33:8080/IRM/app?service=asset&path=%2Fdojo%2F",
preventBackButtonFix: false, parseWidgets: false };
</script>
<script type="text/javascript"
src="http://192.168.51.33:8080/IRM/app?service=asset&path=%2Fdojo%2Fdojo.js"></script>
<script type="text/javascript"
src="http://192.168.51.33:8080/IRM/app?service=asset&path=%2Ftapestry%2Fcore.js"></script>
to become something similar to this:
<script type="text/javascript">
djConfig = { isDebug: true, debugContainerId:'debug',
baseRelativePath:"/IRM/app?service=asset&path=%2Fdojo%2F",
preventBackButtonFix: false, parseWidgets: false };
</script>
<script type="text/javascript"
src="/IRM/app?service=asset&path=%2Fdojo%2Fdojo.js"></script>
<script type="text/javascript"
src="/IRM/app?service=asset&path=%2Ftapestry%2Fcore.js"></script>
Thanks
Peter
--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]