Olá pessoal,
estou usando dataTable e ele não esta carregando os dados do banco, meu bean é uma List (List pins) mas ele aparece como void quando tento colocar ele na propriedade value no dataTable…não estou entendendo o que está acontecendo…
Obrigado.
public class PinMB extends BaseMB {
@EJB
private GerenciadorDePinLocal gerenciadorDePinLocal;
private Pin pin;
private List<Pin> pins;
private Integer idPinSelecionado;
private UISelectBoolean selecao;
//getters e setters
<!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:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
<rich:panel>
<f:subview id="lista-pin">
<h:form>
<rich:dataTable width="100%"
id="dados-pin"
var="pin"
value="#{pin_mb.pins}">
<h:column>
<f:facet name="header">
<h:outputText value="Selecione"/>
</f:facet>
<h:selectBooleanCheckbox id="selecaoCheckBox" binding="#{pin_mb.selecao}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Pin" />
</f:facet>
<h:commandLink value="#{pin.}" />
</h:column>
<rich:spacer height="10" />
<rich:datascroller id="scroller" for="dados-pin" maxPages="10"/>
<rich:spacer height="10" />
</rich:dataTable>
</h:form>
</f:subview>
</rich:panel>
</body>
</html>