Hi,

I'm doing some data rendering using JFreeChart, for which I've created a
Tapestry page "PlotImage" which renders images and returns them as
StreamResponses of type PNG or PDF. I'd like to use this to render
inline <img> tags, e.g.:

<a href="#" t:type="pagelink" t:page="plotimage"
t:context="literal:hepdata-p7521-d2-x1-y1_600.png">
  <img src="#" t:type="pagelink" t:page="plotimage"
t:context="literal:hepdata-p7521-d2-x1-y1_300.png" />
</a>

(only without the "literal:" bits in practice: these contexts will be
generated dynamically). The result isn't quite right, though: the <a>
link to the full-size image functions just fine, but the pagelinked
<img> renders the pagelink as an "href" tag... not very useful: I'd
hoped that there would be special PageLink treatment for <img> tags that
would use the "src" attribute rather than "href". So, *is* there a nice
way to dynamically create <img> src attributes pointing to Tapestry pages?

Thanks,
Andy

-- 
Dr Andy Buckley
Institute for Particle Physics Phenomenology
Durham University
0191 3343798 | 0191 3732613 | www.insectnation.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to