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

@Conversion @TypeConversion on nested property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.3.14
    • None
    • Value Stack
    • Windows

    • Important

    Description

      The j.converter is not called on "a.b.id"
      But it called on "a.id". Is this a bug?

      @Conversion(conversions = {
          @TypeConversion(type = ConversionType.CLASS, key = "a.b.id", converter = "j.converter"),
      @TypeConversion(type = ConversionType.CLASS, key = "a.id", converter = "j.converter")
      })
      public class TestAction extends ActionSupport {
      	A a
      	...
      }
      
      Class A{
      	X id;
      	B b;
      	...
      }
      
      Class B{
      	X id;
      	...
      }
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            deryk D Qiu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: