Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF <h:commandButton action> not working

 
Adnan Gondal
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all! <h:commandButton action> is not working in following code snippest.

bean(Employee.java):-


JSF page(delete-employee.xhtml):-



Faces-config.xml:-

Second navigation rule is not working but the first navigation rule is working. Thanks in advance.
 
B Nirvan
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change action="employee.deleteEmployee" to action="#{employee.deleteEmployee}"

regards,
Nirvan.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic