Yes I can

tml wrote
> <t:eventlink event="showChart" context="[execution]" zone="chartZone">
> ${execution.id}
> </t:eventlink>
> 
> <t:zone t:id="chartZone" id="chartZone" update="show">
>         
> <jfreechart:jpegchart t:id="chart" cliendId="chart"
>                               chart="chart"
>                               width="850" height="600"/>
> </t:zone>



java wrote
> @InjectComponent
> private Zone chartZone;
> 
> @OnEvent(value = "showChart")
> Object onShowChart(RestwertExecution execution) {
>     this.execution = execution;
>     return httpRequest.isXHR() ? chartZone.getBody() : null;
> }
> 
> 
> public JFreeChart getChart() {
>       return new MyChart().generate(dao.loadSomeData());
> }

As I said, I see that zone is updated (there are also log entries for
dao.loadSomeData() every time). but the getChart() method is never called
again and chart content is obviously the same




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Updating-image-inside-zone-tp5716498p5716500.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

Reply via email to