DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11861>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11861 Patch to extend castortransformer to handle collections Summary: Patch to extend castortransformer to handle collections Product: Cocoon 2 Version: 2.0.3 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: sitemap components AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I used (cygwin)diff -u OldFile NewFile to create the diff (I have no CVS access here). Hope it works. The current castortransformer is not able to handle collections. The following lines of code adds Collection handling to the CastorTransformer: if (Collection.class.isAssignableFrom(bean.getClass())) { Iterator i = ((Collection)bean).iterator(); while (i.hasNext()) { marshaller.marshal(i.next()); } } else { marshaller.marshal(bean); // THIS line is currently only implemented. } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]