Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PropertyNotFoundException is coming please help ...

 
Maneessh saxena
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(PropertyResolverImpl.java:127)
at com.sun.rave.web.ui.faces.UIComponentPropertyResolver.getValue(UIComponentPropertyResolver.java:119)
at com.sun.rave.web.ui.faces.DataProviderPropertyResolver.getValue(DataProviderPropertyResolver.java:183)
…………

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>
<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





 
Scott Cheadle
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi actualy I have getter and setter too. but still I am getting PropertyNotFoundException.
 
Scott Cheadle
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the getter and setter have a capitalised first character, ie. setTableDataProvider?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic