Re: xwork-conversion.properties

2009-12-16 Thread Donato Pirozzi
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

Re: xwork-conversion.properties

2009-12-16 Thread Lukasz Lenart
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

Re: xwork-conversion.properties

2009-12-16 Thread Donato Pirozzi
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 > >

Re: xwork-conversion.properties

2009-12-16 Thread Lukasz Lenart
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

xwork-conversion.properties

2009-12-16 Thread Donato Pirozzi
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

RE: xwork-conversion.properties

2008-02-25 Thread Kedar Choudhary
(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

Re: xwork-conversion.properties

2008-02-24 Thread Adam Hardy
) (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

RE: xwork-conversion.properties

2008-02-23 Thread Kedar Choudhary
: 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

Re: xwork-conversion.properties

2008-02-23 Thread Adam Hardy
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

xwork-conversion.properties

2008-02-22 Thread Adam Hardy
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

RES: RES: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-17 Thread volnei Granado Munhoz
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, > &

Re: RES: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-14 Thread Jeromy Evans
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

RES: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-14 Thread volnei Granado Munhoz
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

Re: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-14 Thread Jeromy Evans
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]

Struts + Xwork + xwork-conversion.properties

2007-12-14 Thread volnei Granado Munhoz
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

Struts + Xwork + xwork-conversion.properties = problem on start app

2007-12-13 Thread volnei Granado Munhoz
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