[ 
https://jira.codehaus.org/browse/DISPL-361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283903#comment-283903
 ] 

Florian PROCH commented on DISPL-361:
-------------------------------------

@Anil

Hello.
I'm facing to the same problem.

Using DisplayTag 1.2 and using external sorting/pagination with partialList, i 
have to export all data from my tables ( in Excel )

Just about that : it works well with DT 1.1.1 but not with 1.2...
I have done some tests and the problem seems to come from the tableIterator in 
TableTag.class : 

If partialList is setted to true, paginationHelper used to create tableIterator 
is based on pageNumber and pagesize without regarding the export option.

TAbleTag: l1042 : 
// if we are doing partialLists then ensure we have our size object
if (this.partialList) {
...
PaginationHelper paginationHelper = new PaginationHelper(pageNumber, pagesize);
this.tableIterator = paginationHelper.getIterator(this.list);
} else {
this.tableIterator = IteratorUtils.getIterator(this.list);
}

A solution is to add to the if condition : 
if (this.partialList && 
request.getParameter(TableTagParameters.PARAMETER_EXPORTING) == null)

Like this, if we ask for export, we will have access to the full list instead 
of only visible part.


> Can't export entire list when using external paging/sorting
> -----------------------------------------------------------
>
>                 Key: DISPL-361
>                 URL: https://jira.codehaus.org/browse/DISPL-361
>             Project: DisplayTag
>          Issue Type: Bug
>          Components: Export
>    Affects Versions: 1.1
>            Reporter: Justin Haddad
>
> I have export.amount set to list, but still only get one page worth of data 
> when I export to Excel, CSV, etc.  I'm guessing it has to  do with  using 
> external paging/sorting.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to