Forums Register Login

jsf error display

+Pie Number of slices to send: Send

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()




+Pie Number of slices to send: Send
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.
This tiny ad will self destruct in five seconds.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 938 times.
Similar Threads
jsf error display
JSF and trying to display a resultset
Bean value not maintained in RequestScoped
Bug in chrome
Session Scope JSF
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:24:16.