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.