• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with h:selectManyCheckbox

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi basha,
thanks a lot ....
that really helped...


regards
jyothi
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic