Boa tarde,
Há algo errado ao usar o primefaces 4.0 na seguinte página?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<f:view>
<h:form>
<p:dataTable id="lazyDataTable" value="#{playerMB.allPlayers}"
var="player" paginator="true" rows="10"
selection="#{playerMB.player}" selectionMode="single"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate="5,10,15"
style="width: 80%;margin-left: 10%;margin-right: 10%;">
<p:ajax event="rowSelect" update=":playerDialogForm"
oncomplete="playerDetails.show()" />
<p:column>
<f:facet name="header">Name</f:facet>
<h:outputText value="#{player.name}" />
</p:column>
<p:column>
<f:facet name="header">Age</f:facet>
<h:outputText value="#{player.age}" />
</p:column>
</p:dataTable>
</h:form>
<p:dialog widgetVar="playerDetails" header="Player" modal="true">
<h:form id="playerDialogForm">
<h:panelGrid columns="2">
<h:outputText value="Id: " />
<h:outputText value="#{playerMB.player.id}" />
<h:outputText value="Name: " />
<h:outputText value="#{playerMB.player.name}" />
<h:outputText value="Age: " />
<h:outputText value="#{playerMB.player.age}" />
</h:panelGrid>
</h:form>
</p:dialog>
</f:view>
</h:body>
</html>
Quando uso o 3.2 ela mostra as valores no banco, mas usando 4.0 mostra que não existem registros.