posted 1 year ago
Hi all,
I am facing strange problem with form:checkbox attribute in my Spring MVC form. I am trying to display and edit checkbox values and I don't understand why "form:checkboxes" is working and "form:checkbox" is not.
Here is my code:
The result page screenshot is attached. First checkbox is working, the second one in forEach is not checked and I do not why.
Am I doing anything wrong?
Unfortunately I have to use checkbox with forEach to add more elements.
I am using Spring version 5.1.9.RELEASE
Any advice is appreciated!
Sni-mek-obrazovky-2021-02-18-v-17.44.41.png