Will do and agreed. On Mon, Nov 22, 2010 at 2:19 PM, Howard Lewis Ship <hls...@gmail.com> wrote: > Please add an issue, but I don't see this as a blocker for Tapestry 5.2. > > On Mon, Nov 22, 2010 at 11:48 AM, Adam Zimowski <zimowsk...@gmail.com>wrote: > >> Thank You Howard ! Yes, I moved the file to subfolder "resources", >> changed my annotation to: >> >> @Import(library="classpath:/resources/util.js") >> >> Modified the module: >> >> configuration.add("js", "resources"); >> >> And Viola ! Works. I guess I exercised extreme scenario :) >> >> Adam >> >> On Mon, Nov 22, 2010 at 1:04 PM, Howard Lewis Ship <hls...@gmail.com> >> wrote: >> > Looks like a bug; you should move around the assets to deeper folders, >> that >> > should solve the problem. Alternate, the ClasspathAssetManager should >> > reject your contribution ... you really should package these things >> deeper, >> > somewhere inside your library or applications' root package; that was the >> > intent of how the new aliasing works. >> > >> > On Mon, Nov 22, 2010 at 9:15 AM, Adam Zimowski <zimowsk...@gmail.com> >> wrote: >> > >> >> Minor typo... I also had a stylesheet which is inconsequential to this >> >> and I removed it from the e-mail. The import really is: >> >> >> >> @Import(library="classpath:util.js") >> >> >> >> Adam >> >> >> >> On Mon, Nov 22, 2010 at 11:13 AM, Adam Zimowski <zimowsk...@gmail.com> >> >> wrote: >> >> > Hi, >> >> > >> >> > In my component class I have: >> >> > >> >> > @Import(stylesheet="library="classpath:util.js") >> >> > >> >> > In the module: >> >> > >> >> > public static void >> >> > contributeClasspathAssetAliasManager(MappedConfiguration<String, >> >> > String> configuration) { >> >> > // see http://markmail.org/thread/rq4vp7hi437smsrh >> >> > configuration.add("js", "/"); >> >> > } >> >> > >> >> > The file util.js lives directly under src/ >> >> > >> >> > Page renders fine, but tapestry rendered reference trims first >> >> > character from my file name: >> >> > <script src="/assets/ac7583cf1b184d5f/js/til.js" >> >> > type="text/javascript"></script> >> >> > >> >> > Of course the file is inaccessible that way, but if I manually add the >> >> > missing 'u' I can see it. >> >> > >> >> > Is this a bug or am I doing something wrong? >> >> > >> >> > Adam >> >> > >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> >> >> > >> > >> > -- >> > Howard M. Lewis Ship >> > >> > Creator of Apache Tapestry >> > >> > The source for Tapestry training, mentoring and support. Contact me to >> learn >> > how I can get you up and productive in Tapestry fast! >> > >> > (971) 678-5210 >> > http://howardlewisship.com >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to learn > how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org