Greetings all,
I followed the easy 'Application Object Approach' to integrate Spring
with my Wicket app.
(http://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach
)
In my application class :
public class NihonBareApplication extends WebApplication
{
private CommonService commonService;
public CommonService getCommonService() {
return commonService;
}
public void setCommonService(CommonService cs) {
this.commonService = cs;
}
}
And in my pages :
public class FamiliesPage extends WebPage {
public CommonService getCommonService(){
System.out.println(">>>"+
((NihonBareApplication)getApplication()).getCommonService());
return ((NihonBareApplication)getApplication()).getCommonService();
}
}
But eventhough the bean injected into 'NihonbareApplication' object, the
getCommonService() method of my page returns null for the bean.
What could be the problem?
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org