Zsolt,

Yes, it's a feature of the new exporters.  You can set your medium decorator globally in your props file, like this
export.excel.decorator=name.of.your.excel.decorator

Displaytag's property tag allows you to override global config or set a property that only applies to a particular use.

It should have been documented for 1.1. Unfortunately, I didn't have a chance to contribute documentation for the new exports before the release, but it's coming soon.

-J

Zsolt <[EMAIL PROTECTED]> wrote:
Barroso,
 
is that a 1.1 issue? Can I do that generally? If use the decorator at several locations.
 
Zsolt
 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]eforge.net] On Behalf Of Jorge Barroso
Sent: Thursday, March 02, 2006 4:14 PM
To: [email protected]
Subject: RE: [displaytag-user] The TableDecorator is called by export
 
Try adding this config prop to your jsp:
    <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: [email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

 

Yahoo! Mail
Use Photomail to share photos without annoying attachments.


Brings words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.

Reply via email to