wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 15960
    
  19

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsf error display
 
Similar Threads
jsf error display
JSF and trying to display a resultset
Bean value not maintained in RequestScoped
Session Scope JSF
Bug in chrome