Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

group of checkboxes with multi select dropdown

 
Vicky Pandya
Ranch Hand
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to design a control on Struts UI page with following functionalities.

* I have two attributes: Region, office. I have to design following tree structure on UI
+Region 1 (checkbox)
office1 (checkbox)
office2 (checkbox)
office3 (checkbox)
+Region 2 (checkbox)
office1 (checkbox)
office2 (checkbox)

Based on above UI (which I don't quite sure how to achieve in multi select dropdown) if user selects office1 thenregion1 should get selected automatically. If user selects Region 2 then it should select all offices underneadh automatically.

can anyone guide me how do i go achieve these two functionalities
first to auto select things and second how do I build this kind of UI (multi select , multi select in drop down). Any help with code examples would be much appreciated.

Thanks,
 
Vicky Pandya
Ranch Hand
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone suggest any solution with example??
 
Ganesh Gowtham
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi vicky
just try to write a java script on the "region1 aS WELL AS REGION 2 "' SEPERATELY .
in respective event and enable the child checboxes
.
If u submit u will get all values checked in ur form bean or action class
Thanks
Gowtham
grgowtham_cse@yahoo.com
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic