• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Selecting all JSF checkboxes

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • 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
 
Alim Atar
Ranch Hand
Posts: 102
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic