struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Sachs" <>
Subject Aw: Re: Overwrite a TypeConverter for a Map with Generics
Date Mon, 23 Feb 2015 09:48:53 GMT
thanks for your answer. Have you tried your solution and got it working? I already tried that
before, but it always picked up the global converter de.xxxx.converter.StringTrimConverter.
But maybe i did something wrong.

I tried it with @TypeConversion(rule = ConversionRule.MAP, converter = "de.converter...")
(with annotations and also with a class-specific conversion-properties file).

If a specify a class name that does not exists, i get an exception. But if i use a class that
exists, that class is not used for conversion.

I tried to debug DefaultObjectTypeDeterminer: it's looking for an @Element annotation. The
class-specific properties file (Element_textfield) will only be used if i don't use generics.

Or do i need to implement a Map-Converter instead of a String-Converter?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message