i have a problem with my primefaces datatable, rows are empty.
<h:body>
<ui:composition template="../shared/commonLayout.xhtml">
<ui:define name="content">
<h:form>
<p:dataTable id="users" var="user" value="#{UserManagedBean.userList}" style="width: 40%">
<p:column>
<f:facet name="header">
<h:outputText value="FirstName" />
</f:facet>
<h:outputText value="#{user.firstname}" />
</p:column>
</p:dataTable>
</h:form>
</ui:define>
</ui:composition>
</h:body>
@ManagedBean(name = "UserManagedBean")
@SessionScoped
public class UserManagedBean {
//..
/**
* Get Users List.
*
* @return List - User List
*/
public final List<User> getUserList() {
userList = new ArrayList<User>();
userList.addAll(getUserService().getItems());
return userList;
}
}
i'm using spring, hibernate, jsf managed beans.
can somebody help me please?