JSR 330 Style Injection Support For JSF Managed Beans
One of the features that had been lacking in JSF has been the ability to use the JSR 330 @Inject annotation for injecting object instances into JSF managed beans. The feature now has been enabled in GlassFish 3.1 - starting with the latest July 22 nightly builds, or a current source build. So now, you should be able to use it in a JSF managed bean as follows:
|
import javax.inject.Inject; .... @ManagedBean public class UserNumberBean implements Serializable { @Inject public String getCount() { } |
Cheers...
- Printer-friendly version
- rogerk's blog
- 1584 reads





