openwebbeans

Referencing a CDI Bean in a non managed CDI Bean

佐手、 提交于 2019-12-13 16:14:33
问题 Is it possible to obtain an instance of a CDI bean inside a class that is created using the new keyword? We're currently making some enhancements on an old application, and we're always getting a ContextNotActiveException everytime we do a programmatic lookup on CDI Singleton beans in our app. Code for obtaining a reference: public class ClassCreatedWithNew{ public void doSomething(){ MySingletonBean myBean = BeanManagerSupport.getInstance().getBean(MySingletonBean.class); } }

Passed argument to method inside composite component does not work on MyFaces

霸气de小男生 提交于 2019-12-13 04:36:40
问题 I have successfully able to pass in argument to method inside composite component using this technique from BalusC (Pass Argument to a composite-component action attribute), however this seems to work on Mojarra, but not on MyFaces 2.0.4-2.0.5 (packaged inside Websphere 8.5 + OpenWebBeans) . I post my code below This is my cc <cc:interface> <cc:attribute name="value" /> <cc:attribute name="bean" /> <cc:attribute name="myAction" /> <cc:attribute name="property" /> </cc:interface> <cc

How to inject FacesContext with JSF 2.3 and TomEE?

余生长醉 提交于 2019-12-11 07:33:08
问题 I've been trying to use JSF 2.3 with TomEE server and I'm having problems using the @Inject annotation with the FacesContext object. When I use it, i get the following exception while starting my TomEE server: SEVERE: CDI Beans module deployment failed org.apache.webbeans.exception.WebBeansDeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Api type [javax.faces.context.FacesContext] is not found with the qualifiers Qualifiers: [@javax.enterprise.inject.Default()] Am

omnifaces starting before openwebbeans 1.5.0?

牧云@^-^@ 提交于 2019-12-04 05:08:13
问题 I am using Java 8 / Tomcat 8 / OpenWebBeans 1.5.0 / MyFaces 2.2.8 / DeltaSpike 1.3.0. As I want to use the openwebbeans-tomcat7 module, I placed the following jars in tomcat/lib : openwebbeans-web-1.5.0.jar openwebbeans-tomcat7-1.5.0.jar openwebbeans-spi-1.5.0.jar openwebbeans-resource-1.5.0.jar openwebbeans-jsf-1.5.0.jar openwebbeans-impl-1.5.0.jar openwebbeans-el22-1.5.0.jar xbean-finder-shaded-4.1.jar xbean-asm5-shaded-4.1.jar myfaces-impl-2.2.8.jar myfaces-api-2.2.8.jar geronimo-atinject

omnifaces starting before openwebbeans 1.5.0?

99封情书 提交于 2019-12-02 06:22:47
I am using Java 8 / Tomcat 8 / OpenWebBeans 1.5.0 / MyFaces 2.2.8 / DeltaSpike 1.3.0. As I want to use the openwebbeans-tomcat7 module, I placed the following jars in tomcat/lib : openwebbeans-web-1.5.0.jar openwebbeans-tomcat7-1.5.0.jar openwebbeans-spi-1.5.0.jar openwebbeans-resource-1.5.0.jar openwebbeans-jsf-1.5.0.jar openwebbeans-impl-1.5.0.jar openwebbeans-el22-1.5.0.jar xbean-finder-shaded-4.1.jar xbean-asm5-shaded-4.1.jar myfaces-impl-2.2.8.jar myfaces-api-2.2.8.jar geronimo-atinject_1.0_spec-1.0.jar geronimo-annotation_1.2_spec-1.0.jar geronimo-validation_1.0_spec-1.1.jar geronimo