• 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

Finding problem in setting a value for h:selectBooleanCheckbox

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
i have just started J S F few days before and i am now stuck in a problem and the definition is given below.
Problem: I have a check box named "Select All" and a list of Check Boxes (generated using a data table). When you click "Select All" all check boxes in data table should be clicked automatically. This i have achieved through "valueChangeListner" and its working fine. But the real problem comes, when i uncheck any of the check box inside datatable, "Select All" check box should be unchecked.

Following is the JSP


Following is my backing bean


i have set the managed bean in session scope.

please help me!!!
[ February 29, 2008: Message edited by: Balaji Natarajan G ]
 
Balaji Natarajan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this.setAllSelected(false); given in valueChangeListener sets the managed bean boolean member as false. this is bound to the Select All check box in jsp. Why is this not getting reflected?

please help!!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic