[
https://issues.apache.org/jira/browse/WW-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Hacker updated WW-2776:
---------------------------------
Attachment: ValueStackDataSource.patch
Applied a patch that makes ValueStackDataSource implement
JRRewindableDataSource instead of JRDataSource.
As I am using Version 2.0.11_2 I tried the patch with that 'old' version.
To make life easier I adapted it to the current head version but was not able
to test it. I assume it works within version 2.1/2.2 as well as the base
functionality of the class was not changed
Please consider using this patch.
> Exception thrown for subreports in non-splitting bands containing collections
> that might need to be split.
> ----------------------------------------------------------------------------------------------------------
>
> Key: WW-2776
> URL: https://issues.apache.org/jira/browse/WW-2776
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - JasperReports
> Affects Versions: 2.1.6
> Reporter: Ben Morgan
> Fix For: 2.2.x
>
> Attachments: ValueStackDataSource.patch
>
>
> "net.sf.jasperreports.engine.JRException: The subreport is placed on a
> non-splitting band, but it does not have a rewindable data source."
> The ValueStackDataSource implements JRDataSource, not JRRewindableDatasource,
> If a "non-splittable" subreport iterates over a collection that might go over
> the page boundary, an exception is thrown because it cannot rewind the
> collection.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira