-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issueA duplicate of another issue
Description
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:
- Spring MVC regression: binding to indexed properties is broken [SPR-6871] #11537 Spring MVC regression: binding to indexed properties is broken ("duplicates")
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issueA duplicate of another issue