This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Problem with h:selectManyCheckbox

 
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.
 
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
 
    Bookmark Topic Watch Topic
  • New Topic