Can anyone explain why this code renders only the true case? It is as if the ELSE does not even work.
<span jwcid="[EMAIL PROTECTED]" source="ognl:collection" value="ognl:currentObject" index="ognl:index"> <span jwcid="@If" condition="(ognl:index % 3)) == 0"> <tr> <td>true case</td> </tr> </span> <span jwcid="@Else"> <td>false case</td> </span> </span> If I have a list of elements 9 in length... I should get 3 rows in my table right? Can anyone check this out? Either there is a bug in ELSE component or the condition is bogus to render 3 rows. Thanks in advance. Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: does T-4.1.* have a COUNT component? Date: Mon, 8 Oct 2007 14:27:29 -0400 Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices between collection and loop. All I want to do is increment a count within the template and act on it when it reaches a certain value and then reset it. IE. render <TR> tag every 3 iterations of my outer For loop. Does this exist in Tapestry? Best regards Ken in nashua Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power. Play Now! _________________________________________________________________ Peek-a-boo FREE Tricks & Treats for You! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us