• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

jsf error display

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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()}


 
Ranch Hand
Posts: 514
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it works
 
Could you hold this kitten for a sec? I need to adjust this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic