[OmniFaces utilities] The
resolve() metohd returns the CDI managed bean representation of the given bean class.Method:
import org.omnifaces.util.Beans;
import
javax.enterprise.inject.spi.Bean;
...
// in/out CDI
bean TestBean
Bean<TestBean>
testBean = Beans.resolve(TestBean.class);







JSF 2 Tutorials at www.mkyong.com
JavaServer Faces (JSF) Tutorial 

















Niciun comentariu :
Trimiteți un comentariu