You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andy Pahne <ap...@der-die-das.org> on 2004/10/09 23:56:03 UTC

ChartService - does not work properly inside my foreach

Hello,

I am trying to use the ChartService with jCharts very much like in the 
workbench example application. This bit of code will explain best, what 
I am trying to do:


<!-- showing the modules in question  -->
<table jwcid="@Foreach" source="ognl:report.rules" value="ognl:rule" 
element="table">
     <tr>
         <td><span jwcid="@Insert" value="ognl:rule.shortDesc"/></td>
     </tr>
     <tr>
         <td><img jwcid="@Image" image="ognl:chartImageAsset"/></td>
     </tr>
</table>



The "showRules" component is a Foreach and the chartImageAsset depends 
on the rule (the value binding of my foreach). Of course it does not 
work like that, because, when the browser requests the chartImageAssets, 
  the originating page request cycle is already complete and the page is 
gone. So is my rule property.

I think that passing the rule object as a paramneter to the ChartService 
  is not apropriate, because the object graph iit contains is large. 
Because creation is very costly, I do not want to create it a second 
time, either.

At the moment I do not have another idea. Do you have any suggestions 
for me?

Andy














---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org