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 using index.xhtml to retrieve records from database but it displays the following errors

javax.servlet.ServletException: /cyber/index.xhtml @13,67 value="#{userBean.getUserList()}" Error Parsing: #{userBean.getUserList()}
javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)

root cause

javax.faces.view.facelets.TagAttributeException: /cyber/index.xhtml @13,67 value="#{userBean.getUserList()}" Error Parsing: #{userBean.getUserList()}


 
Volodymyr Lysenko
Ranch Hand
Posts: 512
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

As for me it is better to follow examples from sound book to find out basics and do first steps!!!
Next, to reference property of bean you should write #{beanName.propertyName}.For instance:

This resolves to getter of user list. Getter is method with name - getPropertyNameWithFirstCapitalLetter

To reference method you don't use any brackets.
Your method is:
public String createOrder(){
//my operations
}
This method is referenced like #{userBean.createOrder}
 
muntago Richard
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it works
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic