This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

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 Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 505


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
I agree. Here's the link:
subject: jsf error display
Similar Threads
Sorting is not working in my JSF PrimeFaces Datatable and blank (empty) rows are displayed filtering
Session Scope JSF
Number of <h:form > tags on a page
Does action attribute not work with function call having parameters?
commandLink not working in datatable+jsf2.0