struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davis, Chad" <Chad.Da...@emc.com>
Subject RE: implementaiton advise on custom TextProvider
Date Thu, 18 Oct 2012 14:20:20 GMT


> >> But when I start the app I get the following error, thrown when the
> >> framework tries to create the text provider bean.  It seems like the
> >> framework isn't recognizing that I'm referencing a spring bean with
> >> the class attribute . . .
> >>
> >
> > So, I have figured this out.  The TextProvider is injected outside the control
> of the core objectfactory.  If you look at the ActionSupport class, you'll see
> that there is a lazy init method for acquiring the textprovider.  It uses the
> default ContainerImpl, as injected ( by type I think ) into the action, to inject
> the textprovider.  This means that it goes around the spring object factory for
> this injection.
> >
> > Not sure what to do.  Several workarounds come to mind.
> 
> Good point, could you register an issue for that ?

Of course, and I'd even be happy to do the work.  Perhaps you can advise me on a plan?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Mime
View raw message