This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring binding with checkboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring binding with checkboxes" Watch "Spring binding with checkboxes" New topic

Spring binding with checkboxes

shanthi naidu
Ranch Hand

Joined: Nov 13, 2008
Posts: 39

I have the below code.The interestsList contains list of Interests POJO
It has two properties interestName and id.
I have to map these list items to the check boxes below

What ever interests are checked those check boxes have to be checked and remaining unchecked i tried the below but i did not like it and moreover not working.
Please help me.

shanthi naidu
Ranch Hand

Joined: Nov 13, 2008
Posts: 39
The actual code is the below one

Bill Gorder

Joined: Mar 07, 2010
Posts: 1646

Not exactly sure but does this example from a little while back help? If not clarify a bit more what you are trying to do.

[How To Ask Questions][Read before you PM me]
I agree. Here's the link:
subject: Spring binding with checkboxes
Similar Threads
List of checkboxes and Array/ArrayList data binding not working.
Problem using Spring bind
problem with submit: NullValueInNestedPathException:
check boxes retrieving problem
Check All button for all spring check boxes array