Reputation: 649
<p:panelGrid
columns="2"
style="width:800px;">
<c:forEach var="var" items="#{actividadBean.tipoEquipos}" >
<p:row>
<p:column>
<h:outputText value="#{var.id}" />
</p:column>
<p:column>
<h:outputText value="#{var.nombre}" />
</p:column>
</p:row>
</c:forEach>
</p:panelGrid>
renders both id and nombre (name) in one cell, not in two.
thanks
Upvotes: 0
Views: 4435
Reputation: 5440
The c: tag is a JSP - Standard Tag Library tag which wont support with prime-face. You can use
<p:dataTable var="var" value="#{actividadBean.tipoEquipos}">
<p:column>
<h:outputText value="#{var.id}" />
</p:column>
<p:column>
<h:outputText value="#{var.nombre}" />
</p:column>
</p:dataTable>
Else you can also use simple HTML tags
<c:forEach var="var" items="#{actividadBean.tipoEquipos}" >
<tr>
<td> <h:outputText value="#{var.id}" />
</td>
<td>
<h:outputText value="#{var.nombre}" />
</td>
</tr>
</c:forEach>
Upvotes: 2