Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3871

TypeConversion annotation support improvement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.4.1
    • 7.0.0
    • Plugin - Convention
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            pavan.ananth Pavan Ananth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: