Hi, I'm trying to obtain the URL of an image (which is in the context, but the path is obtained from the DB) to pass it to a Flash application. This is the line i'm using:
String imageURL = assetSource.getAsset(null, sewerGraph.getMapImagePath() , threadLocale.getLocale()).toClientURL(); The value of sewerGraph.getMapImagePath() is "context:planos/plano1.png" in this example, and the result of the line above is "../../planos/plano1.png". This would be fine if I consider the URL of the page class in which this line is executed, but the problem is this page has 2 variables of context that onPassivate puts in the URL (the Page URL transform to "pageURL/contextVar1/contextVar2). With that, the ../../planos/plano1.png is relativa to the contextVar2 portion of the URL and then producing a wrong relative URL. What am i doing wrong? or is this a problem with context assets in the AssetSource ? Regards. P.S.: if this is not very understandable, please ask me.... i haven't slept too much lately.... :( -- View this message in context: http://www.nabble.com/Tapestry-AssetSource-tp21359198p21359198.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
