Re: [Stripes-users] Inject bean in overriden locale picker

2013-06-19 Thread Rob GB
Thanks Fred! From: xf2...@fastmail.fm To: stripes-users@lists.sourceforge.net Date: Thu, 13 Jun 2013 08:11:31 -0400 Subject: Re: [Stripes-users] Inject bean in overriden locale picker If you have the Stripes book, there are more details about this in the Dependency Injection with Spring

[Stripes-users] Inject bean in overriden locale picker

2013-06-13 Thread Rob GB
Hi all, I created my own LocalePicker implementation, I just created a new class and mapped it in web.xml: !-- Override the default localepicker class --init-param param-nameLocalePicker.Class/param-name param-valuecom.my.own.LocalePicker/param-value

Re: [Stripes-users] Inject bean in overriden locale picker

2013-06-13 Thread VANKEISBELCK Remi
Hi Rob, You can also use the Spring APIs directly and skip the annotation and SpringHelper... I mean, calling beanFactory.getBean(myBean) doesn't hurt if you do it only there. You can access the servletContext at init time :