Hi and thanks for answer,
I have tried to use annotation, but don't work, error message is the same:
Error setting expression 'model.dataMandato' with value
'[Ljava.lang.String;@2d2da4'
ognl.MethodFailedException: Method "setDataMandato" failed for object
org.storage.mandati.mand...@18bff68 [j
2009/12/16 Donato Pirozzi :
> obviously is a typos, name of my file into my project is
> xwork-conversion.propertis
Did you try to use annotations?
@TypeConversion(converter = "org.demo.DateConverter")
public void setDateNow(Date now) { this.now = now; }
Regards
--
Lukasz
http://www.lenart.org
gt;
> Should be >>xwork-conversion.properties<<
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
2009/12/16 Donato Pirozzi :
> and I have added src/main/resources/xwrork-conversation.properties (maven2
Should be >>xwork-conversion.properties<<
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscrib
Hi,
I have problem with my custom converter...
I have a bean that provided get/set methods for date.
public class Person {
...
private Date bornDate;
...
public void setBornDate(Date bornDate) { ... }
public Date getBorn() { ... }
}
On my jsp I have dojo input dijit.form.DateText
(new Market());
market = instrument.getMarket();
}
- again, this is so if there exists no-argument public constructor for
class Market
(5) market.setId(1)
Setting type converter in xwork-conversion.properties like
org.permacode.patternrepo.domain.Market
)
(4) instrument = new Instrument()
(5) instrument.setMarket(market)
In steps (2) and (4), my assumption is that OGNL will call my TypeConverter
which I have registered in xwork-conversion.properties to handle those classes.
Are you implying that OGNL will only delegate to the TypeConverter when
: Struts Users Mailing List
Subject: Re: xwork-conversion.properties
Adam Hardy on 22/02/08 17:32, wrote:
> I wrote a TypeConverter and configured S2 with
> xwork-conversion.properties to use it so:
>
>
org.permacode.patternrepo.domain.Market=org.permacode.atomic.web.DomainObjec
tT
Adam Hardy on 22/02/08 17:32, wrote:
I wrote a TypeConverter and configured S2 with
xwork-conversion.properties to use it so:
org.permacode.patternrepo.domain.Market=org.permacode.atomic.web.DomainObjectTypeConverter
as per the wiki.
However, from debugging it looks as though struts is
I wrote a TypeConverter and configured S2 with xwork-conversion.properties to
use it so:
org.permacode.patternrepo.domain.Market=org.permacode.atomic.web.DomainObjectTypeConverter
as per the wiki.
However, from debugging it looks as though struts is completely ignoring the
TypeConverter and
XWorkConverter problem
(was Re: Struts + Xwork + xwork-conversion.properties)
Sorry, that's what I meant - the guice plugin may not be setup for 2.1
correctly (as in a bug in the plugin).
I'll take a look at it myself when I get a chance too.
volnei Granado Munhoz wrote:
> Hi Jeromy,
>
&
my object factory works fine when I don't use xwork-conversion.properties,
it's inject all of my objects except the converter objects.
You can show me your configs??
Thanks...
-
To unsubscribe, e-mail: [EMAIL PROTE
Hi Jeromy,
I think this is not a configuration problem (probably a Xwork|Struts bug),
my object factory works fine when I don't use xwork-conversion.properties,
it's inject all of my objects except the converter objects.
You can show me your configs??
Thanks...
-Mensage
ce in an app in 2.1, but don't use xwork-conversion.properties
directly. Maybe someone else can confirm.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi, i'm using xwork 2.1 with struts 2.1 and Guice to Inject my dependencies.
My struts.xml contains the follow line
and when i start my servlet container the NPE is throwed and aplication is
broken...
When remove or comment the xwork-conversion.properties this runs normaly.
He
Hi, i'm using xwork 2.1 with struts 2.1 and Guice to Inject my dependencies.
My struts.xml contains the follow line
and when i start my servlet container the NPE is throwed and aplication is
broken...
When remove or comment the xwork-conversion.properties this runs normaly.
He
16 matches
Mail list logo