This content has been marked as final.
Show 2 replies
-
1. Re: Issue when injecting client components
csa Nov 7, 2013 8:12 PM (in response to varghese.cv)Hi,
This should definitely work. Can you check if the injected bus instance is null? To be able to @Inject the bus you will either need to inherit from the errai-cdi or errai-ioc-bus-support module (or inherit it transitively through the errai-javaee-all module):
<inherits name="org.jboss.errai.ioc.support.bus.BusSupport" />
or
<inherits name="org.jboss.errai.enterprise.CDI" />
Can you maybe post your gwt.xml file?
Cheers,
Christian
-
2. Re: Re: Issue when injecting client components
varghese.cv Nov 8, 2013 10:45 AM (in response to csa)Thanks Christian, adding org.jboss.errai.ioc.support.bus.BusSupport to gwt.xml, I also had to add errai-ioc-bus-support to maven's dependency list.
The gwt.xml now looks like this
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6//EN" "http://google-web-toolkit.googlecode.com/svn/releases/1.6/distro-source/core/src/gwt-module.dtd"> <module rename-to="HelloWorld"> <inherits name='com.google.gwt.user.User'/> <inherits name="org.jboss.errai.bus.ErraiBus"/> <inherits name="org.jboss.errai.ioc.Container"/> <inherits name="org.jboss.errai.ioc.support.bus.BusSupport" /> </module>