cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: cvs commit: cocoon-2.1/src/webapp/WEB-INF cocoon.xconf
Date Thu, 23 Oct 2003 06:49:48 GMT

Geoff Howard wrote:
> 
> ghoward@apache.org wrote:
> 
> > ghoward     2003/10/22 18:45:34
> > 
> >   Modified:    src/webapp/samples/sources sitemap.xmap samples.xml
> >                src/webapp/WEB-INF cocoon.xconf
> >   Added:       src/webapp/samples/sources/content upload.xml
> >                src/java/org/apache/cocoon/components/source/impl
> >                         PartSource.java PartSourceFactory.java
> >   Log:
> >   Add new multipart file upload Part Source contributed by 
> >   Paul Crabtree with samples.  "Fixes" bug 
> > 
> >   http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23931
> 
> ...
> 
> >   1.1                  
> cocoon-2.1/src/java/org/apache/cocoon/components/source/impl/PartS
> ource.java
> 
> ...
> 
> >   		// get the object model from the component managers 
> curr env.
> >   		Map objectModel = 
> CocoonComponentManager.getCurrentEnvironment().getObjectModel();
> 
> 1) Is this really the right way to do it in 2.1?
No :)

If you need access to the objectModel use the Contextualizable interface.
We have a ContextHelper class that fetches you the object model
out of the Context you get via contextualize.

> 2) I know Carsten (Berin?) just overhauled the Environment handling in 
> 2.2 - what's the right way to do this there?
The same as I mentioned above. The way using the CocoonComponentManager
is not available in 2.2 anymore.

Carsten

Mime
View raw message