cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Airey <nick.ai...@ihavemoved.com>
Subject Bean generator
Date Fri, 12 Apr 2002 09:08:56 GMT

Hello everyone, 

I think it would be useful to have a "BeanGenerator", which basically
generates SAX events based on a java bean.

I already have written several of these, customized according to various
java bean structures, but I see I am going to need more of them, so it
would be cool to replace all of these generators with a single generator
which uses bean introspection to generate SAX events.


In my case, the beans in question are value objects returned from EJB
middleware, and cocoon is doing all the presentation layer processing.



My question is: does something like this exist already? I suspect not.

If not, my second question is: does anyone know a good (open) framework 
for converting beans to SAX events. I have been doing some research, and
have come across several projects:

Betwixt
(http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/betwixt/)
Looks promising, but doesn't (yet) have a SAX writer. 

Domify:
(http://domify.sourceforge.net/)

Hammer:
(http://www.csse.monash.edu.au/~bren/Hammer/)
Stars in the WROX "Java XML" book, published 2001, chapter 6.


Can anyone comment on which would be a good way to go. Of course, if
this is considered to be generally useful, I would be happy to donate
the code for the resulting generator to the cocoon project.


Nick.



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message