Java Reference
In-Depth Information
In order for this to work as expected, some configuration needs to be done behind
the scenes. The faces-config.xml file must be configured properly to let JSF know
that ReportGenerator is a backing bean.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>reportGenerator</managed-bean-name>
<managed-bean-class>
net.ensode.jsf.ReportGenerator
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>
This file must be placed in the WEB-INF directory inside the war file used to deploy
the application.
 
Search WWH ::




Custom Search