struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4210) @TypeConversion converter attribut to class
Date Sat, 22 Apr 2017 15:53:04 GMT

    [ https://issues.apache.org/jira/browse/WW-4210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15979996#comment-15979996
] 

ASF subversion and git services commented on WW-4210:
-----------------------------------------------------

Commit ec2412492503cdd0e90abf7f2cf2c3e50c8fa70c in struts's branch refs/heads/master from
[~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=ec24124 ]

WW-4210 Updates tests to use the class definition instead of string


> @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)

Mime
View raw message