I'm attempting to take the functionality contained in the ChartPage
class from the Tapestry Workbench example and encapsulate it into a
component instead of a page.  (I'm using Tapestry 3.0.3.)

My ChartComponent defines a parameter "chartData" of type Vector that
contains the data used to generate the chart.  In the html template of
the containing page, I pass in a Vector entitled "data" to the
ChartComponent:

<span jwcid="@ChartComponent"  "chartData"="ognl:data"/>

where "data" is a property of the enclosing page of type Vector.

I have noticed that this strategy only works if the "data" property of
the enclosing page is declared as persistent.  Otherwise, by the time
that my chart service tries to obtain the "data" vector from the
enclosing page, that property is null.  Why is that?

Thanks so much,
Howard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to