Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Spring and the fly likes Check All button for all spring check boxes array 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 "Check All button for all spring check boxes array" Watch "Check All button for all spring check boxes array" New topic
Author

Check All button for all spring check boxes array

Darvesh Niz
Ranch Hand

Joined: May 12, 2008
Posts: 119
Hello
Implementing an array of checkboxes in spring is pretty tedious. i have a array of checkbox which i used to display months and a user can select mulitple months.
i want to implement check all functionlity when a user checks it all months are selected.

below is the code snipped i used in my form


and the check boxes are being rendered as



This is the java script function i wrote and this is the form declaration
<form:form name="newTour" action="new-tour.html" modelAttribute="tour" method="post">



any help
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

http://stackoverflow.com/questions/386281/how-to-implement-select-all-check-box-in-html


===Vyas Sanzgiri===
My Blog
 
Consider Paul's rocket mass heater.
 
subject: Check All button for all spring check boxes array
 
Similar Threads
Using JSTL Data Displayed In Browser Is Getting Fixed To 24576 Bytes(24 KB)
How to get value from innerHTML
Getting Checkbox value - DisplayTag library
Capturing Checkbox value using spring framework
how to do Multiple checkbox binding in spring