Thanks Andrew,

I got the desired output using the rendered attribute. Though I will test out limitRendered tag as well, I am getting some compile errors on 1.1.7 sandbox snapshot (mvn dependencies).

For those who might see this thread, below is the code that works..

==================== ui:repeat with rendered=================<br/>
       <ui:repeat var="customer" value="${customers}" >
           ${customer.id} - ${customer.name} -
           <ui:fragment rendered="#{customer.id eq 1}">
             YES
           </ui:fragment>
           <ui:fragment rendered="#{customer.id ne 1}">
             NO
           </ui:fragment>
           <br/>
       </ui:repeat>
==================== ui:repeat with rendered=================<br/><br/><br/>

and this is the generated result, as desired

==================== ui:repeat with rendered=================
1 - cust1- YES
2 - cust2 - NO
3 - cust3 - NO
4 - cust4 - NO
5 - cust5 - NO
6 - cust6 - NO
7 - cust7 - NO
8 - cust8 - NO
9 - cust9 - NO
==================== ui:repeat with rendered=================

-MRather

Reply via email to