struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Sachs" <andil...@gmx.de>
Subject Aw: Re: Overwrite a TypeConverter for a Map with Generics
Date Mon, 23 Feb 2015 09:48:53 GMT
Hello,
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?

Thanks
Andreas
 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message