You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2017/04/24 08:08:04 UTC

[jira] [Resolved] (WW-4210) @TypeConversion converter attribut to class

     [ https://issues.apache.org/jira/browse/WW-4210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart resolved WW-4210.
-------------------------------
    Resolution: Fixed

PR got merged

> @TypeConversion converter attribut to class
> -------------------------------------------
>
>                 Key: WW-4210
>                 URL: https://issues.apache.org/jira/browse/WW-4210
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Annotations
>            Reporter: lefebvre
>            Assignee: Lukasz Lenart
>             Fix For: 2.5.next
>
>
> Can you please change "converter" property type from String to class type.
> {code}
> @Conversion(conversions = { @TypeConversion(type = ConversionType.CLASS, rule = ConversionRule.PROPERTY, converter = "com.xxx.MyConverter", key = "myKey") })
> {code}
> ---->
> {code}
> @Conversion(conversions = { @TypeConversion(type = ConversionType.CLASS, rule = ConversionRule.PROPERTY, converter = MyConverter.class, key = "myKey") })
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)