aspose file tools*
The moose likes JSF and the fly likes Problem with h:selectManyCheckbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with h:selectManyCheckbox " Watch "Problem with h:selectManyCheckbox " New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with h:selectManyCheckbox