Using JBoss 6.0.0.Final, Richfaces 3.3.3.Final, MyFaces 2.0.6, facelets 1.1.15.B1 (a limitation of RF 3).
I\'m on a legacy project which contains hundreds of beans defin
Annotated beans will fail in the following cases:
/WEB-INF/faces-config.xml
is not declared to conform to JSF 2.0.
@ManagedBean
is of javax.annotation
package instead of javax.faces.bean
.
Bean class is not been compiled/built into WAR's /WEB-INF/classes
.
Bean is packaged in a JAR file which is missing /META-INF/faces-config.xml
.
A wrong managed bean name is being used in EL, it should be the bean class name with 1st character lower cased according Javabeans spec. So in your particular example, #{fooBar}
should work, but #{FooBar}
won't.
Webapp is actually using JSF 1.x libs (you can read JSF version in server startup log).