|
From: Rob H. <ro...@ca...> - 2004-11-19 16:04:13
|
Jurgen, Fire away with any modfications - I'll be sure to pay attention to what you do so I can get the same pattern in the rest of may code. As for adding auto-lookup of collections to wrap with JRBeanCollectionDataSource - I did that this morning along with appropriate tests. It uses a specific parameter name, reportData, which should be an instance of Collection. The reason I didn't opt for just taking the first collection it sees is because I don't know if JR will support passing a collection as parameter at some point in the future or whether some other reporting engine already has this support. Rob jürgen höller [werk3AT] wrote: >Thanks for moving the JasperReports support over to the main sources, Rob! I'm currently about to revise it a bit, for example regarding exception handling on initialization (implementing afterPropertiesSet instead of overriding initApplicationContext, to allow for throwing any exception and avoid the need to use unchecked wrapper exceptions). > >There's one further thing I'd like to improve: JRDataSource lookup. It would be good if controller code would not have to add a JasperReports-specific class to the model. Instead, we could pass in a bean collection or bean array, to be implicitly wrapped with a JRBeanCollectionDataSource or a JRBeanArrayDataSource, respectively. > >It looks to me that the JasperReports parameter map does not support collections or arrays anyway, so we could in principle auto-detect a collection or array in the model and wrap it accordingly as JRDataSource. Else, we could define a specific model name for the JRDataSource (as bean property on the view): if specified, the given model object will be used (wrapped if necessary), rather than searching the model map for matching values. > >I've also updated JasperReports to the recently released 0.6.2. I'll commit my current state tonight or tomorrow morning. > >Juergen > > >________________________________ > >Von: spr...@li... im Auftrag von Rob Harrop >Gesendet: Mi 17.11.2004 10:34 >An: spr...@li... >Betreff: [Springframework-developer] JasperReports Support in 1.1.3 > > > >If everyone is in agreement I would like to move the JasperReports stuff >into the main branch ready for 1.1.3. I spent some time yesterday >polishing the JavaDocs for this module which I plan to finish off over >the next few days, plus I'll add a couple of pages of documentation for >this as well. > >Rob > > >------------------------------------------------------- >This SF.Net email is sponsored by: InterSystems CACHE >FREE OODBMS DOWNLOAD - A multidimensional database that combines >robust object and relational technologies, making it a perfect match >for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: InterSystems CACHE >FREE OODBMS DOWNLOAD - A multidimensional database that combines >robust object and relational technologies, making it a perfect match >for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > |