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

Allow form objects to have multiple fields of the same type

    XMLWordPrintable

Details

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

    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.

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: RESTEASY

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: