Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

PropertyNotFoundException is coming please help ...

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





 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the getter and setter have a capitalised first character, ie. setTableDataProvider?
 
Replace the word "snake" with "danger noodle" in all tiny ads.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic