Re: [Stripes-users] Question about stripes spring integration

2008-12-07 Thread Gregg Bolinger
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=100url=/
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 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
 Stripes-users@lists.sourceforge.net
 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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Question about stripes spring integration

2008-12-03 Thread Christian Nelson
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=100url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Question about stripes spring integration

2008-11-30 Thread azizi yazit
Hi. can I know how to delete cache?

On Mon, Nov 17, 2008 at 4:16 PM, Levi Hoogenberg
[EMAIL PROTECTED]wrote:

 Though there is a difference between Stripes' wiring and Spring's: if you
 have the same dependency in a class and its superclass, Stripes will not
 inject the superclass. (I'm talking about field injection here.)


 On Mon, Nov 17, 2008 at 5:50 AM, Gregg Bolinger 
 [EMAIL PROTECTED] wrote:

 The only thing Stripes is doing with the Spring support Interceptor is
 getting a bean from spring's application context.  The wiring of the bean is
 still completely up to Spring so I don't see how this can be a Stripes
 issue.

 Gregg

 On Sun, Nov 16, 2008 at 1:39 PM, 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



 -
 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=100url=/
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/stripes-users



 -
 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=100url=/
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/stripes-users



 -
 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=100url=/
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/stripes-users


-
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=100url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Question about stripes spring integration

2008-11-17 Thread Levi Hoogenberg
Though there is a difference between Stripes' wiring and Spring's: if you
have the same dependency in a class and its superclass, Stripes will not
inject the superclass. (I'm talking about field injection here.)

On Mon, Nov 17, 2008 at 5:50 AM, Gregg Bolinger
[EMAIL PROTECTED]wrote:

 The only thing Stripes is doing with the Spring support Interceptor is
 getting a bean from spring's application context.  The wiring of the bean is
 still completely up to Spring so I don't see how this can be a Stripes
 issue.

 Gregg

 On Sun, Nov 16, 2008 at 1:39 PM, 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



 -
 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=100url=/
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/stripes-users



 -
 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=100url=/
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/stripes-users


-
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=100url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


[Stripes-users] Question about stripes spring integration

2008-11-16 Thread Alex Turner
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
-
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=100url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users


Re: [Stripes-users] Question about stripes spring integration

2008-11-16 Thread Gregg Bolinger
The only thing Stripes is doing with the Spring support Interceptor is
getting a bean from spring's application context.  The wiring of the bean is
still completely up to Spring so I don't see how this can be a Stripes
issue.

Gregg

On Sun, Nov 16, 2008 at 1:39 PM, 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



 -
 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=100url=/
 ___
 Stripes-users mailing list
 Stripes-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/stripes-users


-
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=100url=/___
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users