Bad input type when calling processFieldValue for hiddens generated for checkboxes [SPR-11059]
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: bulk-closed
An outdated, unresolved issue that's closed in bulk as part of a cleaning process
spring-projects-issues commentedNov 2, 2013
Daniel Fernández opened SPR-11059 and commented
When calling "processFieldValue" for the values of the hidden inputs created as a companion for checkboxes in CheckboxTag and CheckboxesTag, the input type being passed to the RequestDataValueProcessor is "checkbox", but it seems it should be "hidden".
See:
https://github.com/spring-projects/spring-framework/blob/master/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/CheckboxTag.java#L61
and
https://github.com/spring-projects/spring-framework/blob/master/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/CheckboxesTag.java#L47
This is inconsistent with the hidden created at FormTag in order to keep a browser-incompatible method value:
https://github.com/spring-projects/spring-framework/blob/master/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/FormTag.java#L366
Affects: 3.2.4
The text was updated successfully, but these errors were encountered: