hi andrzej,

it is not possible to obtain sitemap (pipeline) parameters via
Parameterizable. the latter is only an alternative to Configurable; you're
provided with the configuration (from the map:components section), in this
case in form of Parameters.

sitemap parameters are only provided to SiteMapModel implementing sitemap
components, which AFAIK is not supported for Reader's prior to cocoon 2.1.

> -----Ursprungliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Andrzej Jan Taramina
> Gesendet: Freitag, 12. Dezember 2003 22:26
> An: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Betreff: Writing custom Serializer that accepts parameters?
>
>
> Is it possible to write a custom serializer that accepts sitemap
> parameters?
>
> For example, if I had a serializer set to the type
> "mySerializer", I want to
> do this in a sitemap:
>
> <map:serializer type="mySerializer">
>       <map:parameter name="someName" value="someValue"/>
> <map:serializer>
>
> I've tried to make my custom serializer class implement
> Parameterizable, and
> the parameterize() method is called, but then when I try to get a
> parameter
> using:
>
>       parameters.getParameter( "someName" );
>
> it throws a ParameterException which says:  "The parameter
> 'someName' does
> not contain a value".
>
> Help!
>
> Thanks!
>
>
> Andrzej Jan Taramina
> Chaeron Corporation: Enterprise System Solutions
> http://www.chaeron.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to