Are other annotations supposed to work on super classes like @Validate?
because In my case - something wasn't working that meant neither @SpringBean
or @Validate seemed to be taking effect - my injected property was null and
the validation didn't fire - but when I created a manual process in the
handler, it correctly detected the lack of property and set the error
message, and when I overrode the setContext() method and got the Spring
Context from Servlet Context which I got from the Stripes Context and looked
up the bean - I found it and everything worked.
Alex
On Sun, Dec 7, 2008 at 7:50 PM, Gregg Bolinger
<[EMAIL PROTECTED]>wrote:
> Alex, using @SpringBean I can inject beans into super classes just fine.
> I'm not sure what is happening on your end that you can't.
>
> Gregg
>
> On Sun, Dec 7, 2008 at 12:41 AM, Alex Turner <[EMAIL PROTECTED]> wrote:
>
>> This is awesome - but a problem I have with this and the default one it
>> that it doesn't catch annotations in a superclass. I have a superclass
>> action bean that I want spring injection into, and I don't see a nice way to
>> do it yet.
>>
>> Alex
>>
>> On Thu, Dec 4, 2008 at 12:05 AM, Christian Nelson <[EMAIL PROTECTED]>wrote:
>>
>>> I wrote a simple Stripes interceptor for injecting Spring managed
>>> dependencies into Stripes actions using Spring's annotations instead of
>>> those in Stripes. I think it's more consistent and flexible, not to mention
>>> it's more familiar if you're already using Spring's annotations. We've used
>>> it on a few pet projects and one production project an it works like a
>>> charm.
>>>
>>>
>>> http://blog.carbonfive.com/2008/03/java/injecting-spring-25-beans-into-stripes-actions
>>>
>>> If you're using Spring 2.5 you should consider giving it a try. Maybe
>>> one day it'll be included as part of Stripes.
>>>
>>> Cheers,
>>> Christian
>>>
>>>
>>> On Sun, Nov 16, 2008 at 11:39 AM, Alex Turner <[EMAIL PROTECTED]> wrote:
>>>
>>>> Hmmm - whats weird is that my other DAOs that are being injected are
>>>> fine.
>>>>
>>>> On Sun, Nov 16, 2008 at 2:26 PM, Alex Turner <[EMAIL PROTECTED]> wrote:
>>>>
>>>>> The spring integration seems to work great for simple cases, but I'm
>>>>> running into a case where my dependency is not injected. My main action
>>>>> bean is CreateTrifoldBrochureActionBean, and this is a subclass of
>>>>> ProductActionBean. ProductActionBean has spring inject beans in it, but
>>>>> they don't appear to be getting injected. When I check the injected
>>>>> object
>>>>> to see if it is null, it is :(.
>>>>>
>>>>> Is this known behaviour or am I doing something wrong?
>>>>>
>>>>> Alex
>>>>>
>>>>
>>> --
>>> Christian Nelson -- (e) [EMAIL PROTECTED] -- (m) 415-378-3988
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Stripes-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>> Nevada.
>> The future of the web can't happen without you. Join us at MIX09 to help
>> pave the way to the Next Web now. Learn more and register at
>>
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> _______________________________________________
>> Stripes-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
>
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users