Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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!!!
 
All of the following truths are shameless lies. But what about this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic