|
Hi folks,
I've got a problem with the usage of
column decorators. I'm using them for bringing the hyperlinks to a particular
column data.
Now say I want the 2nd column to be
appearing as links in which i want the url to contain parameter values of the
3rd, 4th and 5th column. I'm able to write a generic code block for generating
the url in the decorate() method of ColumnDecoratorImpl. But instaed of getting
the whole CurrentRowObject(DynaBean object) of a row, i can get just the
respective column value for that cell. How can i write a customization for the
same??
1 solution would be setting the
CurrentRowObject object in the pageContext (session/request) in the initRow()
method of the TableDecorator class. This value then i would be able to get thru
the same PageContext element. But i'm not sure whether this is a right practice
to do so. Also i'm worried about the performance for a table of 17 columns with
4 link fields and with 5000+ rows.
Please note that I'm planning for a
generic decorator that can work for all my reports. Thus nothng should be
specific to the above given scenario.
Kindly put some insight into
this.
Thanks & regards,
Nagraj |
_______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

