Message:

   The following issue has been resolved as FIXED.

   Resolver: fabrizio giustina
       Date: Thu, 30 Dec 2004 2:10 PM

fixed in 1.0 as described: you can export a parent table but nested tables are 
not included in the output (how could you add a nested table in csv or excel?)


---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/DISPL-142

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-142
    Summary: Export of nested tables does not work
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: FIXED

 Original Estimate: 5 hours
 Time Spent: Unknown
  Remaining: 5 hours

    Project: DisplayTag
   Fix Fors:
             1.0
   Versions:
             1.0 RC1

   Assignee: fabrizio giustina
   Reporter: Matt Dowell

    Created: Fri, 26 Nov 2004 11:32 AM
    Updated: Thu, 30 Dec 2004 2:10 PM

Description:
I have a nested table at the end of my report. When I export this, the nested 
tables switch (after the first row) from your export type (Excel in my case) to 
HTML. This makes the Excel file ugly at best. 

We can solve the initial problem by putting this at line 797 of TableTag:

        if (currentMediaType == null) {
            this.currentMediaType = 
(MediaTypeEnum)pageContext.getAttribute(PAGE_ATTRIBUTE_MEDIA);
        }

..but that raises another issue right away, every nested table wants to start 
thier own export file. So, I think the solution is to re-design the export 
process and make it smart enough to know wheter it is a nested table or not 
(does it's parent of type AbstractDisplayColumn). I think the bulk of the work 
has to be done in this method: 

writeExport(String mimeType, String exportString, String filename)

..but it is a little more difficult to decypher. I am working on it, but the 
changes will be in my code which contains the dynamic column feature.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to