Well,
I array a dataTable where i must have some dynamic columns.... So im using dataTable... Like the code above:
<rich:dataTable value="#{query.dataModel}" var="inscricao">
<rich:column label="My List">
<f:facet name="header">
<h:outputText value="My List" />
</f:facet>
<h:outputText value="#{query.presencas.size()}" />
</rich:column>
<c:forEach var="presenca" items="${query.presencas}">
<rich:column label="Presença">
<f:facet name="header">
<h:outputText value="Presença" />
</f:facet>
<h:outputText value="testing" />
</rich:column>
</c:forEach>
</rich:dataTable>
Well, my problem is that my foreach is not working. The column "My List" shows the number of element i have in the list correctly... But when i try iterating it into c:forEach its not working...
I've already tryed using:
xmlns:c="http://java.sun.com/jstl/core"
and this other one:
xmlns:c="http://java.sun.com/jsp/jstl/core"
But withotu success... Also tryed using ui:repeat like this:
<ui:repeat value="#{query.presencas}" var="presenca">
<f:facet name="header">
<h:outputText value="#{presenca.id}" />
</f:facet>
</ui:repeat>
But also not worked.
Someone know what can be the problem or some another way to iterate a list?
I saw that if i use an a4j:repeat INTO a column, it recognize my column inside the a4j:repeat. Otherwise, if i remove the column outside a4j:repeat it doesnt work...
<rich:column label="Presenças" title="teste" >
<a4j:repeat value="#{query.presencas}" var="presenca">
<rich:column label="Presenças" title="teste" >
<f:facet name="header">
<h:outputText value="Presença" />
</f:facet>
<h:selectBooleanCheckbox value="#{inscricao.credenciamento}" />
</rich:column>
</a4j:repeat>
</rich:column>