You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2007/08/21 10:30:11 UTC
T4:Anything wrong with this "For" Component?
Hi,
Here is the html that supposed to produce a few rows of <tr</tr> from a
"For" component, the data is correct, but it does not emit any <tr></tr> to
enclose the data, anything wrong with this?
html template:
<table width="300" cellpadding="5" border="1">
<tr>
<th>Last Name</th>
<th>First Name</th>
</tr>
<tr jwcid="eachCelebrity">
<td> Smith </td><td>John</td>
</tr>
</table>
Result Page:
<table width="300" cellpadding="5" border="1">
<tr>
<th>Last Name</th>
<th>First Name</th>
</tr>
<td> Fonda </td><td>Jane</td>
<td> Gallo </td><td>Ernest</td>
<td> Gates </td><td>Bill</td>
<td> Jolie </td><td>Angelina</td>
</table>
Thanks,
A.C.
--
View this message in context: http://www.nabble.com/T4%3AAnything-wrong-with-this-%22For%22-Component--tf4303799.html#a12250520
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: T4:Anything wrong with this "For" Component?
Posted by "Gubrud, Dave" <dg...@seafax.com>.
You need to include a parameter
element="tr"
in the "eachCelebrity" component.
For a good example, see the docs at http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/For.html
-----Original Message-----
From: Angelo Chen [mailto:angelochen960@yahoo.com.hk]
Sent: Tuesday, August 21, 2007 4:30 AM
To: users@tapestry.apache.org
Subject: T4:Anything wrong with this "For" Component?
Hi,
Here is the html that supposed to produce a few rows of <tr</tr> from a
"For" component, the data is correct, but it does not emit any <tr></tr> to
enclose the data, anything wrong with this?
html template:
<table width="300" cellpadding="5" border="1">
<tr>
<th>Last Name</th>
<th>First Name</th>
</tr>
<tr jwcid="eachCelebrity">
<td> Smith </td><td>John</td>
</tr>
</table>
Result Page:
<table width="300" cellpadding="5" border="1">
<tr>
<th>Last Name</th>
<th>First Name</th>
</tr>
<td> Fonda </td><td>Jane</td>
<td> Gallo </td><td>Ernest</td>
<td> Gates </td><td>Bill</td>
<td> Jolie </td><td>Angelina</td>
</table>
Thanks,
A.C.
--
View this message in context: http://www.nabble.com/T4%3AAnything-wrong-with-this-%22For%22-Component--tf4303799.html#a12250520
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org