The path issue is still occurring after trying both classpath and context. The following error below may be related. This error occurs the first time the site is loaded and disappears if you hit refresh or browse to another page. To reproduce the error the browser needs to be closed and reopened.
Could not load 'dojo.logging.Logger'; last tried '__package__.js' dojo.js;jsessioni... (line 14) Could not load 'tapestry.namespace'; last tried '/__package__.js' dojo.js;jsessioni... (line 14) [Exception... "'Error: Could not load 'tapestry.form'; last tried '/__package__.js'' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no] The above error occurs with the following code OR if classpath is changed to context (we were using context initially). If we change classpath to context and forget to specify the tapestryPath (may want to add it to your documentation as it is currently missing) then the above error again only occurs the first time you hit the site. If context is used and the tapestryPath is specified the error actually occurs on every page on the site instead of just the first page you hit. @Asset("classpath:/tapestry/") public abstract IAsset getTapestryPath(); @Asset("classpath:/tapestry/core.js") public abstract IAsset getTapestrySource(); @Asset("classpath:/dojo/dojo.js") public abstract IAsset getDojoSource(); @Asset("classpath:/dojo/") public abstract IAsset getDojoPath(); @Component(type = "Shell", bindings = { "title = title", "stylesheets = stylesheets", "doctype = doctype", "delegate = metaRenderer", "tapestryPath = asset:tapestryPath", "tapestrySource = asset:tapestrySource", "dojoSource = asset:dojoSource", "dojoPath = asset:dojoPath" }) public abstract IComponent getShell(); I'm not exactly sure why the above errors are being thrown. Once they disappear the dialogs and autocompleters work, but the calendar looks funny due to the wrong image paths. Any other assistance would be great. Thanks in advance! Anna -----Original Message----- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 9:51 PM To: Tapestry users Subject: Re: relative css image path references? p.s. If you're not putting this into your root classpath be sure to add the appropriate regexp rules to "unprotect" your paths. (Tapestry can't do it for you by default as it would be too easy for people to allow security flaws into their apps) http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/module /tapestry.asset.html On 12/28/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > Upon further reflection I think it may actually be my fault after all. > In the case of content being served from a context path vs internal > tapestry library it ~would~ make sense to give dojo base relative > instead of absolute (sort of? ) path... > > Hmm.. .The easiest temporary solution is to make sure the dojoPath > given to the Shell/ScritpIncludes component is one that will cause the > tapestry asset service to manage it instead of the servlet container. > (you probably want this to happen anyways as I'm pretty sure no > servlet container/filter floating around does as much good for assets > as the tapestry asset service can ) > > I guess you can stick your version of dojo somewhere in your classpath > - not context path - and give that path to the component. (ie > classpath:/path/to/dojo instead of context:/js/dojo ) > > On 12/28/06, Anna Vo <[EMAIL PROTECTED]> wrote: > > We have the same issue described here with our calendar looking funny > > due to the CSS path references: > > http://jira.codehaus.org/browse/JETTY-178 > > > > Example: > > .calendarBodyContainer > > { > > url(/dojo/src/widget/templates/DatePicker.cssimages/dpBg.gif) > > } > > > > We are running Tapestry 4.1.1, Tomcat for our testing servers, and Jetty > > locally. Happens locally and on testing servers on IE Win, FF Win and OS > > X, and Safari OS X. > > > > Is there anymore information on this? What is the best way to fix it? > > Thanks in advance. > > > > Anna > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Jesse Kuhnert > Tapestry/Dojo team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]