Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Mar 1, 2010 · 2 comments
Closed
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: duplicate A duplicate of another issue

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Mar 1, 2010

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-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

This is an unfortunate regression in 3.0.1 which has been fixed in recent 3.0.2 snapshots already. Feel free to give 3.0.2 early try; it's scheduled for release next week.

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Thomas Einwaller commented

just ran into that problem, with 3.0.2.BUILD-SNAPSHOT it works again - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants