Results 1 to 2 of 2

Thread: Spring 3.0 tags remove brackets from form names

  1. #1
    Join Date
    Mar 2010
    Posts
    1

    Default Spring 3.0 tags remove brackets from form names

    I have a form backing command object which uses arrays and maps. I used to be able to use form tags to populate this data like so:

    <form:hidden path="list[0].text" />

    It would generate html that looked something like:

    <input id="list0.text" name="list[0].text" type="hidden" value="value" />

    With Spring 3.0, I'm now getting the following with brackets removed from the name:

    <input id="list0.text" name="list0.text" type="hidden" value="value" />

    This breaks the binding in my command object. I assume that this change was made to produce valid html, but I'm not sure how to get around this problem. Is there some other way to bind the form data to my command object?

  2. #2

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •