Hi,
I've read the forum about a response and the only response I found was to look at the smartGWT EE showcase. So I did but I found no reference how to integrate Spring beans in smartGWT.
Here is my question : how do I do to make annotations such as @Autowired work in a SmartGWT object ?
Here is my sample :
This is the datasource I use. I wish to use that service to fetch the data but when I try to access the transportService, I get a NullPointerException ... But a datasource been has been declared like this :
Is it possible to do so ? If yes, how ? Thanks.
I've read the forum about a response and the only response I found was to look at the smartGWT EE showcase. So I did but I found no reference how to integrate Spring beans in smartGWT.
Here is my question : how do I do to make annotations such as @Autowired work in a SmartGWT object ?
Here is my sample :
Code:
public class LoadingUnitDataSource extends BasicDataSource { public static final Logger logger = LoggerFactory.getLogger(LoadingUnitDataSource.class); private TransportService transportService ; public LoadingUnitDataSource() { super(); } ... }
Code:
<bean id="loadingUnitDataSource" class="com.alea.server.datasource.LoadingUnitDataSource"> <property name="transportService" ref="transportService" /> </bean>
Comment