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

Re: xwork-conversion.properties

2009-12-16 Thread Lukasz Lenart
2009/12/16 Donato Pirozzi donatopiro...@gmail.com: and I have added src/main/resources/xwrork-conversation.properties (maven2 Should be xwork-conversion.properties Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe

Re: xwork-conversion.properties

2009-12-16 Thread Donato Pirozzi
-conversation.properties (maven2 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

Re: xwork-conversion.properties

2009-12-16 Thread Lukasz Lenart
2009/12/16 Donato Pirozzi donatopiro...@gmail.com: 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

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

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 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

RE: xwork-conversion.properties

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

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

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

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

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 constant name=struts.objectFactory value=guice / and when i start my servlet container the NPE is throwed and aplication is broken... When remove or comment the xwork

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

2007-12-14 Thread Jeromy Evans
remove or comment the xwork-conversion.properties this runs normaly. Here is the stakTrace: java.lang.NullPointerException at com.opensymphony.xwork2.conversion.impl.XWorkConverter.createTypeConverter(X Wor kConverter.java:729) That null pointer exception implies the object factory

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... -Mensagem original

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

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

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 constant name=struts.objectFactory value=guice / and when i start my servlet container the NPE is throwed and aplication is broken... When remove or comment the xwork