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

jsf error display

 
muntago Richard
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Am trying to search and display records from database using ID but it displays the following errors


javax.servlet.ServletException: javax.el.MethodNotFoundException: /cyberworld/search.xhtml @25,70 action="#{userBean.Id}": Method not found: jsfpackage.UserBean@1a93f38.Id()
javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)

root cause

javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException: /cyberworld/search.xhtml @25,70 action="#{userBean.Id}": Method not found: jsfpackage.UserBean@1a93f38.Id()




 
Tim Holloway
Saloon Keeper
Pie
Posts: 18272
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. You appear to be using "id" as both a property and an action method. Which is it?

2. You should not capitalize the first letter of bean, method, or property names. That's a violation of basic JavaBean conventions. Since JSF adheres to those conventions, it can become confused by non-conformant naming.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic