You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by bu...@apache.org on 2004/03/30 20:38:24 UTC

DO NOT REPLY [Bug 27651] - Relative private-asset throws exception

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27651>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27651

Relative private-asset throws exception

hlship@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.1



------- Additional Comments From hlship@apache.org  2004-03-30 18:38 -------
You've managed to confuse Tapestry here. The ResourceLocation for Home is a 
ContextResourceLocation (because test.application is in WEB-INF). When using a 
<private-asset>, Tapestry will cast get the relative ResourceLocation and cast 
it down to ClasspathResourceLocation.

I believe you can resolve this by changing the specification-path 
to "/testpackage/Home.page".  I believe (this is from memory, and I may be 
wrong), that using a leading slash forces Tapestry to interpret the entire 
path as a ClasspathResourceLocation.

Tapestry 3.1 will introduce prefixes on paths to make it eaiser to intermix 
classpath and context resources without any magic.

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org