mardi 4 avril 2017

Getting value of list of checkboxes using thymeleaf, spring boot

Here, i have a form which have list of user with checkboxes. I need to get boolean values as well as user ids of respective checkboxes to know the boolean value whether true or false for each user to insert values as per user in the database. For Example:

enter image description here

Let's say we have three users of id 1,2,3 then i need the checkbox checked value like 1,0,1 for respective user. So, as to insert boolean value for the user if checked or not. Please help! me i am using spring boot, spring data jpa with thymeleaf.




Aucun commentaire:

Enregistrer un commentaire