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
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
-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
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
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
(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
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo