It definately wasn't possible with Castor 0.9.3.9, but it should be
possible with 0.9.3.19
--Keith
TREGAN Fabien wrote:
>
> Hi,
>
> I've have a mapping-definition for a Component class. When I try to XMLise
> it with castor, it works. I'd like to XMLize a Component[] object (because
> this is what my API returns)
>
> I manage to make it by making a "Components" bean with a Component[]
> getContent() method, but I did not find how to XMLise an array of Component
> directly (wich I'd need, since I do not want to instance a new bean wich
> will be used only for XML output via castor, and won't be used for other
> output methodes)
>
> Is it possible ?
>
> thx,
> fabien.
>
> >-----Message d'origine-----
> >De: TREGAN Fabien
> >Date: jeudi 18 juillet 2002 08:45
> >�: [EMAIL PROTECTED]
> >Objet: [castor-dev] How to serialize a "bean" that has no public
> >constructor ?
> >
> >
> >Hi,
> >
> >I could'nt find any answer in the archive, though this
> >question certainly
> >has allready been asked :
> >
> >I have a class with accessors but no public constructor (since
> >it can only
> >be returned by the business tier). When I try tu XMLise it with castor
> >(using the CastorTransformer in Cocoon 2), castor throw an
> >exception because
> >no public constructor is aviable. It then ignores my
> >castor-mapping.xml, and
> >XMLise the "bean" without problem, but using introspection
> >instead of my
> >configuration file.
> >
> >I tryed adding auto-complete="false", it did nothing. Any idea ?
> >
> >thx,
> >fabien.
> >
> >-----------------------------------------------------------
> >If you wish to unsubscribe from this mailing, send mail to
> >[EMAIL PROTECTED] with a subject of:
> > unsubscribe castor-dev
> >
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev