[
https://issues.apache.org/struts/browse/WW-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46746#action_46746
]
Andrew Hodgson commented on WW-2776:
------------------------------------
IMHO, coupling between plugin and JasperReports is quite brittle. dataSource
plugin parameter could / should be optional, and alternative dataSource types
such as JRRewindableDatasource could be supplied as report parameter.
See WW-3245 for an example of how this can be achieved (this example is for a
Hibernate Session, but alternative connection and data source types could be
supported with a little more work).
Use of report parameters to supply connection / data source is normal practice
for Jasper users, so user base should be relatively familiar with this method
of usage.
> Exception thrown for subreports in non-splitting bands containing collections
> that might need to be split.
> ----------------------------------------------------------------------------------------------------------
>
> Key: WW-2776
> URL: https://issues.apache.org/struts/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
>
>
> "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.
-
You can reply to this email to add a comment to the issue online.