In the scratchpad we have a CastorTransformer. I'm not sure but I think that it is a rather long time there. Is it in use and stable and is it time to move it in the main trunk or can we remove it.
I also found a CastorSourceConverter in the portal framework. What are the differences? Can they be unified? Cheers, Reinhard -----Original Message----- From: Tony Edwards [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 1:16 AM To: '[EMAIL PROTECTED]' Subject: RE: Beans as input for cocoon I'm using the Castor transformer to convert a large, nasty bean into xml and then into HTML/PDF. It works really well, seems fast (the slowest bit is the bean accessing the database to get its data) and best of all it manages to convert all ArrayLists and other complex types. I initially use an XSP action to instantiate the bean and connect to the datasource and populate the bean, then I pass this though the Castor Transformer. I use the same mapping file that comes with the example because the bean is so huge it would take too long to even come up with a mapping file but Castor ignores all mappings it can't find or aren't there and outputs elements based on the Bean field names. Excellent! Tony -----Original Message----- From: Alexander Schatten [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 July 2003 1:29 AM To: [EMAIL PROTECTED] Subject: Re: Beans as input for cocoon Uwe Gerger wrote: >Hello, >we have some Java-beans wich contains the data we wish to transform with >cocoon into PDF. Is there a way how we can get the data from the bean >into cocoon? Maybe there is a special bean-transformer or something like >this? > > > Hm, a BeanGenerator could be a nice idea? but where would this bean get the data from? it would be initialized by the generator, so is "empty"; off course you could read a file or something in the bean constructor or access a database; but for both things there seem to be more elegant options. in fact you can access beans from within XSP scripts or actions, maybe this is a convenient solution. alex --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
