File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts-Nested tags : Problem using checkbox check all and uncheck all Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-Nested tags : Problem using checkbox check all and uncheck all" Watch "Struts-Nested tags : Problem using checkbox check all and uncheck all" New topic
Author

Struts-Nested tags : Problem using checkbox check all and uncheck all

Sarayu Kannan
Greenhorn

Joined: Feb 11, 2008
Posts: 2
hi,

I need to switch around 5 different workareas during a particular session. So, i create 5 workelements for each workarea.

Here is the form bean code



The bean
MyBean
inturn has a collection of another bean
MyInnerBean




I iterate the collection
myList
in my jsp to display a collection of checkbox.

Here, when i click on the checkbox all, i need to check both jan and feb checkboxes. Similarly, when i uncheck any of jan/feb checkboxes i have to uncheck the all checkbox.

Here is the js code...


When i load the page, i preload the jsp with myList collection and have all the checkbox values checked.

Now, when i uncheck the checkboxes and submit the jsp... i still have all checkbox value set to true and the reset is not getting reflected (i.e isAll(), isJan(), isFeb() always return true).

Please help.


Thanks,<br />Sarayu
 
Consider Paul's rocket mass heater.
 
subject: Struts-Nested tags : Problem using checkbox check all and uncheck all