hai i m using datasource for displaying data. and i want to use tabedecorater class for showing some sum of data. but when i try to use getCurrentRowObject() it return null value .
is there any solution or it is bug.
rgds
ritesh
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, the error I get is not that getCurrentRowObject return s null, it's that the method in my TableDecorator never gets called.
In the table I have:
a column-tag with property="link" and of course a decorator="package.MyTableDecorator" attr. in the table-tag.
In the Decorator I have en method getLink(). This is never called. In stead I get a warning saying that BasicDynaBean does not have a "link" property. (I use RowSetDynaClass)
Thanks,
Christian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hai i m using datasource for displaying data. and i want to use tabedecorater class for showing some sum of data. but when i try to use getCurrentRowObject() it return null value .
is there any solution or it is bug.
rgds
ritesh
try with dynabean
<%
Connection con = ...; // just open a connection
%>
I have the same problem, and I am using the RowSetDynaClass as described in iyadurai's reply.
Any ideas?
/Christian
I am using WebSphere 4 (sigh)
Current cvs HEAD has support for totals.
The totals are placed in pageContext for use in the footer, or can be accessed via a custom tag.
Sorry, the error I get is not that getCurrentRowObject return s null, it's that the method in my TableDecorator never gets called.
In the table I have:
a column-tag with property="link" and of course a decorator="package.MyTableDecorator" attr. in the table-tag.
In the Decorator I have en method getLink(). This is never called. In stead I get a warning saying that BasicDynaBean does not have a "link" property. (I use RowSetDynaClass)
Thanks,
Christian