struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4210) @TypeConversion converter attribut to class
Date Mon, 30 Sep 2013 05:26:24 GMT

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

Lukasz Lenart updated WW-4210:
------------------------------

    Description: 
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}

  was:
Can you please change "converter" property type from String to class type.

@Conversion(conversions = { @TypeConversion(type = ConversionType.CLASS, rule = ConversionRule.PROPERTY,
converter = "com.xxx.MyConverter", key = "myKey") })


---->

@Conversion(conversions = { @TypeConversion(type = ConversionType.CLASS, rule = ConversionRule.PROPERTY,
converter = MyConverter.class, key = "myKey") })



> @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
>             Fix For: 2.5
>
>
> 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.1#6144)

Mime
View raw message