Might be interesting for other users..

(read below) 

> 
   
 
Drs. G.P.H. Josten
Consultant
 
 

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl
KvK 27164984


De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.
 

> Van: Geert Josten 
> Verzonden: dinsdag 19 september 2006 11:12
> Aan: 'Varga, Zsombor'
> Onderwerp: RE: cocoon serializer
> 
> > > Anyhow, I might have an answer for you. I have tried adapting the 
> > > SourceWritingTransformer to act as a Serializer, but 
> encountered the 
> > > same problem as you. As far as I recall you cannot parametrize a 
> > > serializer after it is created and initialized. (Please 
> correct me 
> > > if I am wrong, anyone!)
> > i found an other solution here:
> > http://comments.gmane.org/gmane.text.xml.cocoon.user/53269. 
> And it is 
> > works!!!
> > 
> > I only implemented the SitemapModelComponent interface. i 
> have to add 
> > some more methods to my serializer (but Eclipse did it 
> instead of me).
> > And in the setup() method i got Parameters, and objectModel 
> which is a 
> > Map. With Parameters you can get the SiteMap parameters, 
> and with the 
> > objectModel yo can access to the Request object, wher you can get 
> > anything [Request oRequest = 
> > ObjectModelHelper.getRequest(objectModel)]
> > 
> > It's really working!
> 
> Cheers for getting it to work! :-)
> 
> Yes, I recognize the thread. But I was still using older 
> version of Cocoon, so I couldn't use the suggestion they made. :-P
> 
> Besides, it is a pity that the serializer you created has 
> such a limited use case, while mine can be used in many 
> situations. And I always found transformers much more 
> powerfull than serializers. I believe there are components 
> that reuse code for both transformers and serializers, 
> however; cannot mention one though.
> 
> Have you noted my remark about making internal calls? 
> Something to keep in mind when using your serializer.
> 
> Kind regards,
> Geert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to