File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes jsf error display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf error display" Watch "jsf error display" New topic
Author

jsf error display

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82

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

Joined: Jun 25, 2001
Posts: 16158
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: jsf error display