Hi Jeromy,
Jeromy Evans wrote:
Daniel Baldes wrote:
[...]
2. Is there a way to define a type converter application wide, like
"always use this type converter for setting types which are subclasses
of X" and "for setting types which are Collection<subclass-of-X>"?
This way I could define the type converter once for all
persistence-capable classes.
classpath:xwork-converters.properties allows you to define global
converters by class name. You may be able to the the element_ feature
for collections.
Otherwise visitor validation will have to do
I found out that this line in xwork-conversion.properties is sufficient
to define my custom converter for all subclasses AND collections of
subclasses:
com.acme.SuperClass = com.acme.CustomConverter
Perfect - this is what I need.
Thanks for your Help,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]