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
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
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,
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"
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".
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
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
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
---
> 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:
> >
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
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
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
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" /
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
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.
15 matches
Mail list logo