The moose likes JSF and the fly likes Finding problem in setting a value for h:selectBooleanCheckbox Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Finding problem in setting a value for h:selectBooleanCheckbox" Watch "Finding problem in setting a value for h:selectBooleanCheckbox" New topic
Author

Finding problem in setting a value for h:selectBooleanCheckbox

Balaji Natarajan
Greenhorn

Joined: Nov 24, 2007
Posts: 29
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 ]

Best Regards,<br />Balaji Natarajan<br /> <br />SCJP 1.5 100%<br />SCWCD 1.5 92%<br />SCBCD (In Progress)
Balaji Natarajan
Greenhorn

Joined: Nov 24, 2007
Posts: 29
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!!!
 
 
subject: Finding problem in setting a value for h:selectBooleanCheckbox
 
Threads others viewed
how to obtain list object from an actionform
Binding object in a selectMenu
How to avoid this hibernate jpa LazyInitializationException exception in Swing application?
sorting in bean objects
two classes mapped with same entity name
developer file tools