jQuery in Action, 3rd edition
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf error display" Watch "jsf error display" New topic

jsf error display

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
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()}

root cause

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

Volodymyr Lysenko
Ranch Hand

Joined: Mar 29, 2012
Posts: 511


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}

True person is moral, false is right!
muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
it works
jQuery in Action, 3rd edition
subject: jsf error display
It's not a secret anymore!