You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nima Boustanian <ni...@tn20.com> on 2006/03/16 13:13:17 UTC

contrib:Table combined with @For component?

Hello all

How come the contrib:Table can't be combined with a @For component properly?

 <table jwcid="table@contrib:Table" id="conversationsPlaceHolder" 
source="ognl:posts"
                                  columns="Subject:title, 
Comments:childPosts, Posted:createdDate, Posted by:authorId, Tags"
                                  class="tableheader" >
                 <tr jwcid="TagsColumnValue@Block">
                                        <span jwcid="@For" 
source="ognl:posts" value="ognl:post">
                                          <span jwcid="@For" 
source="ognl:getTags(post.id)" value="ognl:tag">
                                          </span>
                                        <span jwcid="@Insert" 
value="ognl:tag.name"></span>
                                     </span>
                                  </tr>         
 </table>

This will insert three lines of <span jwcid="@Insert" 
value="ognl:tag.name"></span> per @For loop instead of one because the 
number of objects returned from the collection of posts in the 
contrib:Table is three. Is there a work around for iterating through 
collections in
overridden blocks which works correctly?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org