On Tue, 14 Aug 2012 14:27:02 -0300, sommeralex
<alexander.som...@gmail.com> wrote:
writer.element("image",
"src", "img/icon/help.png}",
"title", text,
"id", id
);
You're using a relative path. Use an absolute one (starting with a slash
or a full URL) such as /img/icon/help.png.
it worked with the old tapestry, 2.6, but not with the new one. The
previous
issue was solved with putting the praefix context e.g
src="${context:/img/icon/money.png}" to my image, but this does not work
if
i am trying it like this:
writer.element("image",
"src", "${context:/img/icon/help.png}",
"title", text,
"id", id
);
Tapestry doesn't interpret expansions when you're writing HTML through the
API. You could use AssetSource (specifically method getContextAsset()) for
situations in which the path is dynamic.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org