• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP Status 500 - javax.el.PropertyNotFoundException: Property 'ResourceList' not found on type com.

 
carl sandburg
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see the problem here. I'm new at this, probably missing something obvious.

Anybody?

xhtml looks like...

<h:dataTable value="#{bean.ResourceList}" var="r">


bean looks like....


@ManagedBean(name="bean")
@SessionScoped
public class ResourceBean implements Serializable {
private static final long serialVersionUID = 1L;

public List<Resource> getResourceList() throws SQLException{
System.out.println("in the ResourceBean class - getResourceList method");
Connection m_conn = null;


etc...



for some reason it doesn't find it...


HTTP Status 500 - javax.el.PropertyNotFoundException: Property 'ResourceList' not found on type com.xxx.msd.beans.ResourceBean

--------------------------------------------------------------------------------

type Exception report

message javax.el.PropertyNotFoundException: Property 'ResourceList' not found on type com.xxx.msd.beans.ResourceBean

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.el.PropertyNotFoundException: Property 'ResourceList' not found on type com.xxx.msd.beans.ResourceBean
javax.faces.webapp.FacesServlet.service(FacesServlet.java:229)


root cause

org.apache.myfaces.view.facelets.el.ContextAwarePropertyNotFoundException: javax.el.PropertyNotFoundException: Property 'ResourceList' not found on type com.xxx.msd.beans.ResourceBean
org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getValue(ContextAwareTagValueExpression.java:100)
javax.faces.component._DeltaStateHelper.eval(_DeltaStateHelper.java:249)
javax.faces.component.UIData.getValue(UIData.java:2036)
javax.faces.component.UIData.createDataModel(UIData.java:1984)
javax.faces.component.UIData.getDataModel(UIData.java:1961)
javax.faces.component.UIData.getRowCount(UIData.java:483)
org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:366)
org.apache.myfaces.shared.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:214)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:634)
javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:532)
javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981)
org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:298)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)


root cause

etc...

 
Tim Holloway
Bartender
Posts: 18415
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF is based on the JavaBean model. JavaBeans have certain conventions, one of which is that class names begin with an upper-case letter, but instance and property names begin with a lower-case letter.

You have violated this standard by designing a property named "ResourceList". Because the property accessor framework expects standards-compliant property names, your set/get methods aren't resolving and you get a PropertyNotFoundException.

Change the reference to "#{bean.resourceList}" and you'll fare better. Make the resourceList property return a javax.faces.ListDataModel wrapping the actual list and you'll do better still.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!