You didn't say what version of JBoss you were using, but dependency injection for JSF managed beans is only available for JBoss 5 and JBoss 4.2.
This is a feature that has to be enabled by the container, so just using JSF 1.2 alone isn't enough. If you are already using JBoss 5 or JBoss 4.2, post a reply here.
Hello, sory for the delayed replay but i am still interested in how to do this
dependency injection. I am using jboss 4.0.5 and also Myfaces last version i think 1.1.4. Is this dependency injection specifict to JSF 1.2?
Yes, it is part of the JSF 1.2 spec. And actually, it is an optional feature. The only time it is required is for a JEE 5 compliant application server.
It won't work with JSF 1.1.
The feature will be available in JBoss 4.2 and JBoss 5.0.