In your .html
<div jwcid="whatever" />
and in your .jwc or .page
<component id="whatever" type="Any">
<binding name="id">
'news' + currentNews.id
</binding>
</component>
the 'Any' component is there to be used in any tag where you want to add
your custom attributes dynamically.
Refer to
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Any.html
for more info about this component.
best regards.
Raul.
Vinicius Carvalho wrote:
Well, I've never done this with tapestry before, but I need to write a
custom id property for my <div> element. It must be a literal + a property
from an @For value.
<span jwcid="@For" source="ognl:latestNews" value="ognl:currentNews">
<tr bgcolor="#CCCCCC">
<td><span jwcid="@Insert" value="ognl:currentNews.header"/></td>
<td><div id="????"></td>
Where ???? must be something like "news"+currentNews.id
How can I do this?
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]