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

Allow form objects to have multiple fields of the same type

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.2-beta-1
    • Fix Version/s: 2.3.4.Final
    • Component/s: jaxrs
    • Labels:

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bill.burke Bill Burke
                  Reporter:
                  m.winkels Maarten Winkels
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: