请教一个 JSF,managed-bean.xml配置问题
<managed-bean>
<description> </description>
<managed-bean-name> energyReportBean </managed-bean-name>
<managed-bean-class> com.auxgroup.sxamr.view.bean.EnergyReportBean </managed-bean-class>
<managed-bean-scope> session </managed-bean-scope>
<managed-property>
<property-name> typeReport </property-name>
<value> report </value>
</managed-property>
</managed-bean>
<managed-bean>
<description> </description>
<managed-bean-name> deptEnergyBean </managed-bean-name>
<managed-bean-class> com.auxgroup.sxamr.view.bean.EnergyReportBean </managed-bean-class>
<managed-bean-scope> session </managed-bean-scope>
<managed-property>
<property-name> typeReport </property-name>
<value> dept </value>
</managed-property>
</managed-bean>
java文件
private String typeReport;
public String getTypeReport() {
return typeReport;
}
public void setTypeReport(String typeReport) {
this.typeReport = typeReport;
}
我这个参数typeReport在JAVA里得不到值,请问怎么回事?
------解决方案-------------------- 只能在com.auxgroup.sxamr.view.bean.EnergyReportBean 里面才能获得typeReport