rich extendedDataTable problem
robs8383 Sep 14, 2012 7:29 AMHello i've a problem with an application wich must integrate richfaces, spring and hibernate.
file tabella.xhtml
.....
<rich:extendedDataTable value="#{tabella_prova.getAllTab}" var="tab" id="table" width="1350px" height="400px">
<rich:column sortable="false" label="Tipo" width="40px" id="col_1">
<f:facet name="header">
<h:outputText value="Tipo" id="tipo"/>
</f:facet>
#{tab.codice}
</rich:column>
<rich:column sortable="true" id="col_2" filterEvent="onkeyup" width="80px" label="Nome Voce">
<f:facet name="header">
<h:outputText value="Nome Voce" id="nome_voce"/>
</f:facet>
<!-- <h:outputText value="bb" id="cap_state"/> -->
#{tab.nome}
</rich:column>
<rich:column sortable="true" id="col_3" filterEvent="onkeyup" width="80px" label="Folder">
<f:facet name="header">
<h:outputText value="Folder" id="folder"/>
</f:facet>
<!-- <h:outputText value="bb" id="cap_name"/> -->
</rich:column>
.........
</rich:extendedDataTable>
file Tabella_provaBean.java
package it.robs.bean.spring.hibernate;
import java.io.Serializable;
import it.robs.bean.spring.Tabella_prova;
import java.util.List;
public class Tabella_provaBean implements Serializable {
/**
*
*/
Tabella_provaBO tabella_provaBO;
public int codice;
public String nome;
public int getCodice() {
return codice;
}
public void setCodice(int codice) {
this.codice = codice;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public void setTabella_provaBO (Tabella_provaBO tabella_provaBO){
this.tabella_provaBO=tabella_provaBO;
}
public List<Tabella_prova> getAllTab(){
return tabella_provaBO.getAllTab();
}
}
file faces-managed-beans.xml
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<application>
<el-resolver>
org.springframework.web.jsf.el.SpringBeanFacesELResolver
</el-resolver>
</application>
<managed-bean>
<managed-bean-name>tabella_prova</managed-bean-name>
<managed-bean-class>it.robs.bean.TabellaProvaBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>tabella_provaBO</property-name>
<value>#{tabella_provaBO}</value>
</managed-property>
</managed-bean>
</faces-config>
My problem is, when i load page tabella.xhtml , server return this error:
javax.el.PropertyNotFoundException: //D:/workspaceBEA/Progetto2/WebContent/tabella.xhtml @49,123 value="#{tabella_prov.getAllTab}": The class 'it.robs.bean.TabellaProvaBean' does not have the property 'getAllTab'.
Caused by:
javax.el.PropertyNotFoundException - //D:/workspaceBEA/Progetto2/WebContent/tabella.xhtml @49,123 value="#{tabella_prov.getAllTab}": The class 'it.robs.bean.TabellaProvaBean' does not have the property 'getAllTab'.
Can someone help me, please? Sorry for my bad english, thanks.
Roberto