Skip to content

Indexed properties not set correctly in form tags [SPR-6921] #11586

@spring-projects-issues

Description

@spring-projects-issues

Daniel IfCore opened SPR-6921 and commented

Since 3.0.1 the input form tag generates a different html code for indexed properties:

Example:

<form:input path="searchValues[author]" />

searchValues is a Map<String, String> object in the model.

In 3.0.0 the resulting html was:
<input id="searchValuesauthor" name="searchValues[author]" type="text" value=""/>

3.0.1 now generates:
<input id="searchValuesauthor" name="searchValuesauthor" type="text" value=""/>

This results in unset properties in the model property searchValues.
When I modify the parameter name in the request manually to the old form, the values are set correctly.


Affects: 3.0.1

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions