当我运行下面的代码时,Apache Tomcat Log 说:
Property 'recuClientes' not found in type com.swc.rc.recu.UtilsRecu
网页返回No records found.
有什么建议吗?
这是电话
<p:outputPanel>
<h:form>
<p:dataTable var="rec" value="#{rc.recu}">
<p:column headerText="recu">
<h:outputText value="#{rec.deudor}" />
</p:column>
</p:dataTable>
</h:form>
</p:outputPanel>
这是源,我可以使用它,不是吗?
@XmlTransient
public Collection<Procs> getProcsCollection() {
return procsCollection;
}
public void setProcsCollection(Collection<Procs> procsCollection) {
this.procsCollection = procsCollection;
}
这是 managedBean..
@ManagedBean(name = "rc")
@SessionScoped
public class UtilsRecu {
private Clientes cliente=new Clientes();
private List <Procs> recu=new LinkedList<Procs>();
public void recuClientes(){
recu=(List<Procs>) cliente.getProcsCollection();
}
public void setRecu(List<Procs> recu) {
this.recu= recu;
}
public List<Procs> getRecu() {
recuClientes();
return recu;
}
}
谢谢..