RE: Incorrect Bean Injected

2009-01-22 Thread Martin Gainty
an 2009 09:45:04 -0500 > From: to...@genome.med.harvard.edu > To: user@struts.apache.org > Subject: Re: Incorrect Bean Injected > > Ok that's what I figured. I have already extended the > StrutsSpringObjectFactory to do this. > > Thanks, > Tim > > Musachy B

Re: Incorrect Bean Injected

2009-01-22 Thread Timothy Orme
Ok that's what I figured. I have already extended the StrutsSpringObjectFactory to do this. Thanks, Tim Musachy Barroso wrote: Not any time soon. You can either build from trunk, or create your own factory that extends StrutsSpringObjectFactory, and overwrite the methods(2) with the fix (quick

Re: Incorrect Bean Injected

2009-01-16 Thread Musachy Barroso
Not any time soon. You can either build from trunk, or create your own factory that extends StrutsSpringObjectFactory, and overwrite the methods(2) with the fix (quick and dirty solution). musachy On Fri, Jan 16, 2009 at 2:50 PM, Timothy Orme wrote: > Excellent, thank you! Just out of curiosity,

Re: Incorrect Bean Injected

2009-01-16 Thread Timothy Orme
Excellent, thank you! Just out of curiosity, what would the release timeline be on this? Thanks, Tim Musachy Barroso wrote: I looked at the code and it cannot be set to none. I fixed it in struts and xwork trunks, so in the future you will be able to set "struts.objectFactory.spring.autoWire"

Re: Incorrect Bean Injected

2009-01-16 Thread Musachy Barroso
I looked at the code and it cannot be set to none. I fixed it in struts and xwork trunks, so in the future you will be able to set "struts.objectFactory.spring.autoWire" to "no". The spring value is AutowireCapableBeanFactory.AUTOWIRE_NO, so I followed the pattern and used "no" instead of "none".

Re: Incorrect Bean Injected

2009-01-16 Thread Timothy Orme
rse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Fri, 16 Jan 2009 12:50:14 -0500 From: to...@genome.med.harvard.edu To: user@struts.apache.org Subject: Re: Incorrect Bean Injected Yeah, I tr

Re: Incorrect Bean Injected

2009-01-16 Thread Timothy Orme
etting the value="none"? Brian Relph -Original Message- From: Timothy Orme [mailto:to...@genome.med.harvard.edu] Sent: Friday, January 16, 2009 10:41 AM To: Struts Users Mailing List Subject: Re: Incorrect Bean Injected So scratch that, I figured out that Struts is set to auto

Re: Incorrect Bean Injected

2009-01-16 Thread Dave Newton
Martin Gainty wrote: http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-scopes scope="prototype" would specify a single Bean would cover n number instances Not sure that matters for auto-wiring. Dave ---

RE: Incorrect Bean Injected

2009-01-16 Thread Martin Gainty
> Date: Fri, 16 Jan 2009 12:50:14 -0500 > From: to...@genome.med.harvard.edu > To: user@struts.apache.org > Subject: Re: Incorrect Bean Injected > > Yeah, I tried both "none" as well as "no" and neither had any effect. > > Relph,Brian wrote: > >

Re: Incorrect Bean Injected

2009-01-16 Thread Timothy Orme
1 AM To: Struts Users Mailing List Subject: Re: Incorrect Bean Injected So scratch that, I figured out that Struts is set to autowire by default with the spring plugin. In my struts.xml I have: And am now autowiring by type instead of name. However, does anyone know how to turn off auto

RE: Incorrect Bean Injected

2009-01-16 Thread dusty
1 AM > To: Struts Users Mailing List > Subject: Re: Incorrect Bean Injected > > So scratch that, I figured out that Struts is set to autowire by default > with the spring plugin. > > In my struts.xml I have: > > value="org.apache.struts2.spring.StrutsSpringObjectFactor

RE: Incorrect Bean Injected

2009-01-16 Thread Relph,Brian
Did you try setting the value="none"? Brian Relph -Original Message- From: Timothy Orme [mailto:to...@genome.med.harvard.edu] Sent: Friday, January 16, 2009 10:41 AM To: Struts Users Mailing List Subject: Re: Incorrect Bean Injected So scratch that, I figured out that Str

Re: Incorrect Bean Injected

2009-01-16 Thread Timothy Orme
Here is the link to the feature request. https://issues.apache.org/struts/browse/WW-2765 Timothy Orme wrote: So scratch that, I figured out that Struts is set to autowire by default with the spring plugin. In my struts.xml I have: value="org.apache.struts2.spring.StrutsSpringObjectFactory" /

Re: Incorrect Bean Injected

2009-01-16 Thread Timothy Orme
So scratch that, I figured out that Struts is set to autowire by default with the spring plugin. In my struts.xml I have: And am now autowiring by type instead of name. However, does anyone know how to turn off autowiring altogether? I've seen a feature request for this, but it hasn't been

Incorrect Bean Injected

2009-01-16 Thread Timothy Orme
This seems really strange to me, but I don't know the inner workings of struts enough to know if it's expected behavior. I'm using Struts 2.1.2 and spring 2.5.3 I have a 2 service beans that have the same name, but depending on the action, one might be used instead of the other.