OK, I have tried following. private AssetSource assetSource;
and in method public String getImagePath() { Asset asset; if(article.getImage() == null || article.getImag().isEmpty()) { asset=assetSource.getAsset(null,"context:/gfx/"+article.getImage(),null); return asset.toClientURL(); } asset=assetSource.getAsset(null,"context:/gfx/Test.png",null); return asset.toClientURL(); } but I get following error "Render queue eroror in AttributeNS[ src "${imagePath}"]: org.apache.tapestry5.ioc.internal.util.TapestryException. What may be the cause of it? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Context-and-image-pulling-tp5717870p5717888.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org