I am trying to utilized index properties in a displaytag table, but I'm not sure how to go about it.
I have a series of reports to create that are pretty much cookie cutter. The only thing that varies is the column names. What I am trying to do is create a generic "Bean" class that is an array of names and and an array of values. I'm trying to display this in my table like
Hi All,
I am trying to utilized index properties in a displaytag table, but I'm not sure how to go about it.
I have a series of reports to create that are pretty much cookie cutter. The only thing that varies is the column names. What I am trying to do is create a generic "Bean" class that is an array of names and and an array of values. I'm trying to display this in my table like
When I try to run this code, I get the following error:
Error looking up property "xxx" in object type "com.hna.credit.beans.Bean".
which makes me thing that DisplayTag is trying to do the normal property lookup by name, when I'm trying to return the value in the indexed property.
Here'e my Bean class if it will help.
public class Bean {
}