| Author |
Problem with h:selectManyCheckbox
|
Jyothi Bhogadi
Ranch Hand
Joined: Jul 08, 2005
Posts: 47
|
|
HI all, I am trying to delete a list of records using h:selectManyCheckbox . what i exactly want from the application is.... I have a list of employees and they are all present in a datatable. I want to delte some of them using the control h:selectManyCheckbox .. But when i place this control as the last column in the datatable my command buttons are not working at all..... they are not going to the method in the backing bean with which they are registered with. This is the jsp code : Any ideas why the buttons are not working !!! Thanx in Advance jyothi.
|
 |
ansar basha
Ranch Hand
Joined: Aug 02, 2005
Posts: 34
|
|
Hi Jyothi, First you need to put action or actionListener for <h:commandButton value="Delete Employee" /> ie Delete Employee button. Second you need to check if your managed bean empBean is defined in configured faces-config.xml. Action method should have proper signatures if it is bound by actionListener then it should be class empBean{ public String forwardCreate(ActionEvent ae){ return "sucess"; } } if it is bound to on action then it should have class empBean{ public String forwardCreate(){ return "sucess"; } } Hope this will work in your scenario. Thanks Ansar
|
 |
Jyothi Bhogadi
Ranch Hand
Joined: Jul 08, 2005
Posts: 47
|
|
hi basha, thanks a lot .... that really helped... regards jyothi
|
 |
 |
|
|
subject: Problem with h:selectManyCheckbox
|
|
|