• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Selecting all JSF checkboxes

 
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a created a Datatable , it contains a checkbox and like the normal Email web pages like Yahoo Mail, I want that when a user selects one checkbox all other checkboxes are checked.This is
a classic Javascript problem , but when i checked the HTML generated from the JSF application. i saw


<input type="checkbox" name="_idJsp15:data1:0:hsbcb340" id="_idJsp15:data1:0:hsbcb340" value="true" />
<input type="checkbox" name="_idJsp15:data1:1:hsbcb340" id="_idJsp15:data1:1:hsbcb340" value="true" />
<input type="checkbox" name="_idJsp15:data1:2:hsbcb340" id="_idJsp15:data1:2:hsbcb340" value="true" />

Please how do i select all the checkboxes
 
Ranch Hand
Posts: 102
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
This can be solved by using ajax a4j:support and a4j:region.
If you changing the one check box then call reRender of <a4j:support...> and rerender the all check box and from end you can set values for that check boxes ..

Regards,
Alim
 
Oh the stink of it! Smell my tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic