You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/08/20 16:36:04 UTC
DO NOT REPLY [Bug 11861] New: -
Patch to extend castortransformer to handle collections
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: cocoon-dev@xml.apache.org
ReportedBy: m.homeijer@devote.nl
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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org