• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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?
 
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic