On 4/24/07, Donyee <[EMAIL PROTECTED]> wrote:
<span t:type="Grid" source="jobs" model="modelForGrid" rowsPerPage="2">
<t:parameter name="updatecell">
<a t:type="PageLink" t:page="Start" t:context="????">更新</a>
</t:parameter> </span>
but how can i get a arg for the t:context?
Set a row parameter within Grid to point to a property object in your
page then grab a property (maybe a pkey if that is db related) from
that object:
<span t:type="Grid" source="jobs" row="job" model="modelForGrid"
rowsPerPage="2">
<t:parameter name="updatecell">
<a t:type="PageLink" t:page="Start" t:context="job.id">更新</a>
</t:parameter> </span>
I am new to T5!
Consider look also at the source while looking for answers.
--
Massimo
http://meridio.blogspot.com