This is not really the tapestry problem. You are using the relative url regardless of where in the page you are and you are hard coding the same path every time
This is a proper way how you want to use assets (e.g. images) in the tapestry http://tapestry.apache.org/assets.html Your tml should probably be changed into something like <img src="${context:graphics/}${images}" alt="Banner"/> public String getImages(){ return image.getLocation(); } On Thu, Jun 6, 2013 at 5:55 PM, Nomen Nomanum <getibi...@outlook.com> wrote: > Hi. > I have following in css file something like following > .displayingBackground{ > > background-image:url('../graphics/SectionForGifs/myImage.gif'); > } > > and it's OK, it shows just fine in following segments > > www.mySite.com/thisPage > www.mySite.com/thatPage > www.mySite.com/* > > * where denotes any sort of the page > > > however, it won't show up in the following terms > > > www.mySite.com/thatPage/SomeOtherPage > www.mySite.com/thatPage/SomeOtherPageTwo > www.mySite.com/thatPage/* > > > * where denotes any sort of the page > > Also, I am using getImages(){} in www.mySite.com/thatPage/* kind pages, > with > > public String getImages(){ > return "graphics/" + image.getLocation(); > } > and it produces following output : graphics/locationOfImage.png, which > is OK, however, it won't render, until I put in my firebug ../ infront of > it, i.e. > ../graphics/locationOfImage.png . It seems to me that Tapestry is > confused with url from CSS code, and it gets to some folder, i.e. > SectionForGifs( aformentioned in the CSS example ) and stucks there all the > way. Any help or advise about this issue is grateful. Thank you. > how > -- Sincerely *Boris Horvat*