Define a getter for your service that returns null by default, and in
your Spring enabled session return the injected bean.

Martijn

On Mon, Nov 23, 2009 at 12:46 PM, Anthony DePalma <fatef...@gmail.com> wrote:
> Often with spring I give some of my services extra features if they are
> configured in the xml for it, but otherwise if they are null they are simply
> ignored. I'm running into an issue with my websession, that one of my apps
> can use the RememberMeService but another cannot. However, I'd like to have
> one abstractwebsession they can share, but unfortunately I'll get an
> exception when starting the app without the rememberMeService defined in the
> xml. It wouldn't make sense to define one to satisfy the error.
>
> The only solution I had so far was to inject it into the application class,
> where i can do so without @springbeans and thus a service can be null, but
> is there any way I can configure springbeans to not throw an error on
> startup for optional services?
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to