File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes PropertyNotFoundException is coming please help ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "PropertyNotFoundException is coming please help ..." Watch "PropertyNotFoundException is coming please help ..." New topic

PropertyNotFoundException is coming please help ...

Maneessh saxena
Ranch Hand

Joined: Oct 03, 2006
Posts: 125
Why I am getting PropertyNotFoundException even if I have defined and initialized the bean property in the required bean class.

Error is::

Caused by: javax.faces.el.PropertyNotFoundException: Error getting property 'tableDataProvider' from bean of type com.cdms.beans.GFCIDSearch
at com.sun.faces.el.PropertyResolverImpl.getValue(
at com.sun.rave.web.ui.faces.UIComponentPropertyResolver.getValue(
at com.sun.rave.web.ui.faces.DataProviderPropertyResolver.getValue(

Jsp is :

<webuijsf:panelLayout id="GFCIDSearchPanel" style="height: 530px; margin-bottom: 3px; left: 0px; top: 0px; position: relative; width: 840px; -rave-layout: grid">
<webuijsf:table augmentTitle="false" id="gfcid_Req_table1" paginationControls="true" style="height: 48px; left: 48px; top: 24px; position: absolute"
title="GFCID Requests" width="695">
<webuijsf:tableRowGroup id="GFCIDen_table1_tableRowGroup1" rows="11" sourceData="#{GFCIDSearch.tableDataProvider}" sourceVar="currentRow">
<webuijsf:tableColumn headerText="Type" id="type_Col">
<webuijsf:staticText id="type_id" text="#{currentRow.tableDataProvider.list[currentRow.tableRow.rowId].GFCID_TYPE}"/>
<webuijsf:tableColumn headerText="ID" id="id_Col">


And backing bean class is

public class GFCIDSearch extends AbstractFragmentBean {
// <editor-fold defaultstate="collapsed" desc="Managed Component Definition">


Automatically managed component initialization. <strong>WARNING:</strong>
* This method is automatically generated, so any user-specified code inserted
* here is subject to being replaced.

private void _init() throws Exception {
// </editor-fold>

private ArrayList<GFCIDRequestsBean> gfcidReqBeanList = null;
private static transient TableDataProvider tableDataProvider = null;

I am not getting that In spite of declering propert correctly I am getting PropertyNotFoundException. Please let me know why this error is coming...

Thanks & Regards

SCJP 1.4, SCWCD 1.5
Scott Cheadle

Joined: Apr 21, 2009
Posts: 8
You need to include a getter and a setter.

public void setTableDataProvider(TableDataProvider tdp) {
this.tableDataProvider = tdp;
public TableDataProvider getTableDataProvider() {
return tableDataProvider;
Maneessh saxena
Ranch Hand

Joined: Oct 03, 2006
Posts: 125
hi actualy I have getter and setter too. but still I am getting PropertyNotFoundException.
Scott Cheadle

Joined: Apr 21, 2009
Posts: 8
Does the getter and setter have a capitalised first character, ie. setTableDataProvider?
I agree. Here's the link:
subject: PropertyNotFoundException is coming please help ...
It's not a secret anymore!