Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Unassigned
   Priority: Major

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

    Project: DisplayTag
   Versions:
             1.0 RC1

   Assignee: 
   Reporter: Matt Dowell

    Created: Fri, 26 Nov 2004 11:32 AM
    Updated: Fri, 26 Nov 2004 11:32 AM

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



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to