On 2005-06-27 07:09:24 -0700, Reinhard Poetz <[EMAIL PROTECTED]> said:
Now the question is: what would be the easiest way to put the "id"
property of the bean bound to the current row in place of the
"[INSERT-ID-HERE]" string?
You have to use the cforms macro library to get the id:
...
<jx:import uri="resource://org/apache/cocoon/forms/generation/jx-macros.xml"/>
...
<ft:repeater-widget id="current">
<tr>
<td><ft:widget id="select"/></td>
<td>
<a
href="/base/${repeater.getRow(repeaterLoop.index).lookupWidget('id').value">
<ft:widget id="name"/></a>
</td>
</tr>
</ft:repeater-widget>
That rocks. I've always used an XSLT transform to solve this problem,
now I don't have to!
Thanks Reinhard,
—ml—
PS looks like a shorter way to write it is
<a href="/base/${context_widget_.lookupWidget('id').value">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]