struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <>
Subject [jira] [Commented] (WW-3871) TypeConversion annotation support improvement
Date Fri, 22 Mar 2013 07:25:16 GMT


Lukasz Lenart commented on WW-3871:

This task will break backward compatibility, moved to the next major release
> TypeConversion annotation support improvement
> ---------------------------------------------
>                 Key: WW-3871
>                 URL:
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Convention
>    Affects Versions:
>            Reporter: Pavan Ananth
>             Fix For: 3.0
> The annotation support for TypeConversion in Struts 2 is too literal an interpretation
of the XML support. For instance, I am required to supply this if I have choose the CreateIfNull
feature at a property level :
> @TypeConversion(key="CreateIfNull_users", rule=ConversionRule.CreateIfNull, value="true")
> List<User> users;
> Given that the rule is CreateIfNull, the key can be constructed implicitly using property
name - why is it asked of an user to type in the full key. 
> This holds good for the other supported ConversionRules as well

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message