Bryon Phinney wrote:
configuration:
Cocoon 2.1

I need to pass the current session or request to a custom
SourceFactory .  Is it possible to pass the session to the
SourceFactory.getSource( ) method via the Map argument?  If not, is
there another way to get access to it?

Look at, for example, o.a.c.components.source.impl.PartSourceFactory. In the contextualize method it gets the object model. From the object model (using ObjectModelHelper.getRequest() you can get the request. From the request you can get the session. Make sure your SourceFactory implements Contextualizable, so that its contextualize() method will be called.

A long way around, but it will get you there.

Regards, Upayavira

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

Reply via email to