[ https://issues.apache.org/jira/browse/TOMAHAWK-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved TOMAHAWK-1485. -------------------------------------- Resolution: Not A Problem Assignee: Leonardo Uribe t:dataList iterate over a list without check for rendered property on the component. The fact that the component is not rendered does not means that the value is "skipped". t:dataList works as expected. > t:dataList should not render <li> element when iterated element is not > rendered > ------------------------------------------------------------------------------- > > Key: TOMAHAWK-1485 > URL: https://issues.apache.org/jira/browse/TOMAHAWK-1485 > Project: MyFaces Tomahawk > Issue Type: Improvement > Components: Data List > Affects Versions: 1.1.9 > Environment: Tomcat 6.0.20, Mojarra 1.2_14, Tomahawk 1.1.9, > commons-el 1.0, commons-fileupload 1.2.1, commons-io 1.4, commons-logging > 1.1.1 > Reporter: Bauke Scholtz > Assignee: Leonardo Uribe > > The following code example: > <%...@taglib uri="http://java.sun.com/jsf/core" prefix="f" %> > <%...@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %> > <% > request.setAttribute("list", java.util.Arrays.asList(1, 2, 3, 4, 5)); > %> > <f:view> > <!doctype html> > <html lang="en"> > <head> > <title>Tomahawk t:dataList demo</title> > </head> > <body> > <t:dataList value="#{list}" var="item" layout="unorderedList"> > <t:outputText value="#{item}" rendered="#{item % 2 == 0}" /> > </t:dataList> > </body> > </html> > </f:view> > results in following: > * > * 2 > * > * 4 > * > while the following is expected: > * 2 > * 4 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.