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

Allow form objects to have multiple fields of the same type

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.3.4.Final
    • 2.2-beta-1
    • jaxrs

      For a project I'm working on, I need to post a form with both an invoice and a shipping address. I would like to use the following class:

      public class Person {
      	@Form(prefix="invoice") private Address invoice;
      	@Form(prefix="shipping") private Address shipping;
      }
      	
      public class Address {
      	@FormParam("street") private String street;
      }

      And then post a form with the values:

      invoice.street=SomeStreet
      shipping.street=SomeOtherStreet

      I have implemented this feature as an extension of the FormInjector. I would like to contribute this to RESTEasy.

        1. ComplexFormTest.java
          2 kB
          Maarten Winkels
        2. RESTEASY-523.patch
          16 kB
          Maarten Winkels

              patriot1burke@gmail.com Bill Burke (Inactive)
              m.winkels Maarten Winkels (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: