Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-806

Upgrade RESTEasy to support Map and List @Form since 2.3.5.Final

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.3.6.Final, 3.0-beta-4
    • 2.3.5.Final
    • jaxrs
    • None

      Currently (2.3.5.Final) support new usage of @Form with List and Map as supported type:

          public static class Person {
              @Form(prefix="telephoneNumbers") List<TelephoneNumber> telephoneNumbers;
              @Form(prefix="address") Map<String, Address> addresses;
          }
      ...
          request.addFormHeader("telephoneNumbers[0].countryCode", "31");
          request.addFormHeader("telephoneNumbers[0].number", "0612345678");
          request.addFormHeader("telephoneNumbers[1].countryCode", "91");
          request.addFormHeader("telephoneNumbers[1].number", "9717738723");
          request.addFormHeader("address[INVOICE].street", "Main Street");
          request.addFormHeader("address[INVOICE].houseNumber", "2");
          request.addFormHeader("address[SHIPPING].street", "Square One");
          request.addFormHeader("address[SHIPPING].houseNumber", "13");
      

      But RESTEasy JS-API has not been upgraded to support this feature. It needs to be implemented.

              weli@redhat.com Weinan Li
              weli@redhat.com Weinan Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: