Option 2.

On Thu, 27 May 2010 11:32:26 -0300, paha <ch_pa...@yahoo.com> wrote:


Hi, i have a question:
what is the best approach to extend
http://wiki.apache.org/tapestry/Tapestry5HowToCreateGenericGraphComponent
GenericGraphComponent to output an image map along with the chart itself.
for now i have only one idea.
1) create and process chart in beginRender to obtain CharRenderingInfo
(needed to produce image map)
2) generate and output image map in beginRender
3) create and process chart again in onChart event to return the
StreamResponce

the obvious issue is the need to generate the chart twice or export it to
image twice. i don't think persisting the chart/input stream is the best
idea, unless there are no other approaches.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
Coordenador e professor da Especialização em Engenharia de Software com Ênfase em Java da Faculdade Pitágoras
http://www.arsmachina.com.br

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

Reply via email to