public String getImageURL() { IAsset asset = getAsset("closed");
return asset.buildURL(getRequestCycle()); } Bind the image symbol of the Script to the imageURL property of the page. -- [EMAIL PROTECTED] http://tapestry.sf.net > Hello World, > > I've recently picked up on Tapestry and am very impressed. > > But how do I pass the path of a component's private-asset through to a > script? > > I have tried the following: > > --------Component.jwc----------- > <specification class="net.sf.tapestry.BaseComponent"> > > <component id="script" type="Script"> > <static-binding > name="script">/test/Script.script</static-binding> > <binding name="image" property-path="assets.image"/> > </component> > > <private-asset name="closed" resource-path="/test/image.gif"/> > > </specification> > --------Component.jwc----------- > > But when I look at the script generated it looks like this: > > PrivateAsset[/test/image.gif] > > This is from the PrivateAsset.toString method, is it possible that > toString is being called rather than buildURL or am I missing something > obvious? > > Many thanks in advance. > > Simon. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer