I My xhtml code is this:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<p:column headerText="Student">
<p:repeat value="#{student.convertList()}" var="item" varStatus="index">
<h:outputText value="#{item.nameStudent}" id="#{index}" />
</p:repeat>
</p:column>
The method student.converList()
is used because my Students are in a Set so I need to convert set in List:
public List<Student> convertList() {
return new ArrayList<Autori>(this.setStudent);
}
it gives me:
Empty id attribute is not allowed
Anyone can help me?