Why don’t you do that as
default if a decorator is being used?
Zsolt
<display:setProperty
name="export.excel.decorator"
value="name.of.your.decorator" />
Zsolt
<[EMAIL PROTECTED]> wrote:
Here is my exporter (it is my customized excel exporter):
RowIterator rowIterator =
this.model.getRowIterator(this.exportFull);
// iterator on rows
while (rowIterator.hasNext())
{
Row row = rowIterator.next();
HSSFRow xlsRow = sheet.createRow(rowNum++);
colNum = 0;
// iterator on columns
ColumnIterator columnIterator =
row.getColumnIterator(this.model.getHeaderCellList());
while (columnIterator.hasNext())
{
Column column =
columnIterator.nextColumn();
// Get the value to be displayed for
the column
Object value =
column.getValue(this.decorated);
...
My decorator:
TrackerSimpleLayoutDecorator extends TableDecorator
The html version works fine but when I click on the excel exporter my
Decorator class is not called at all.
Zsolt
________________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jorge
Barroso
Sent: Thursday, March 02, 2006 3:47 PM
To: displaytag-user@lists.sourceforge.net
Subject: Re: [displaytag-user] The TableDecorator is called by export
More details pls, like code and use sample.
Zsolt <[EMAIL PROTECTED]>wrote:
Hi,
I would like to move from 1.1-SNAPSHOT to 1.1 final and my problem is that
during export my decorator is not called any more.
Any ideas?
Zsolt
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
________________________________________
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
[EMAIL PROTECTED]>
Yahoo! Mail
Use
Photomail to share photos without annoying attachments.
|