Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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


inturn has a collection of another bean


I iterate the collection


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.
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic