This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with h:selectManyCheckbox

 
Jyothi Bhogadi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi basha,
thanks a lot ....
that really helped...


regards
jyothi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic