cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From david.grea...@idl-bt.com
Subject RE: How do I add objects to the objectModel Map
Date Thu, 20 Dec 2001 22:15:53 GMT
Well, I had thought in the sitemap.xmap :)
I see what you mean though; I could subclass a generator/transformer and do
it there.

thanks - see also my reply to David R :)

David


> -----Original Message-----
> From: Tom Klaasen (TeleRelay) [mailto:tom.klaasen@telerelay.com]
> Sent: 20 December 2001 16:36
> To: cocoon-users
> Subject: RE: How do I add objects to the objectModel Map
> 
> 
> Where do you want to do it?
> 
> In a generator/transformer, just do objectModel.put(key, object)...
> 
> tomK
> 
> > -----Original Message-----
> > From: david.greaves@idl-bt.com [mailto:david.greaves@idl-bt.com] 
> > Sent: donderdag 20 december 2001 17:23
> > To: cocoon-users@xml.apache.org
> > Subject: RE: How do I add objects to the objectModel Map
> > 
> > 
> > Anyone?
> > Help?
> > 
> > 
> > > -----Original Message-----
> > > From: david.greaves@idl-bt.com [mailto:david.greaves@idl-bt.com]
> > > Sent: 20 December 2001 00:18
> > > To: cocoon-users@xml.apache.org
> > > Subject: How do I add objects to the objectModel Map
> > > 
> > > 
> > > Hi
> > > 
> > > I hope this is straightforward...
> > > 
> > > How do I add objects to the objectModel Map?
> > > 
> > > http://xml.apache.org/cocoon/userdocs/generators/velocity-gene
> > rator.html
> > says:
> > <export-object key="objectMapKey" 
> > name="velocityContextName"/> (optional;
> > 0..n) - Export the object specified by key from the Cocoon 
> > object map to the
> > Velocity context of the template. The object can be 
> accessed from the
> > template as name. Be careful to use a valid VTL variable name. 
> > 
> > I've looked through the code but can't figure this one out.
> > 
> > David
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> > 
> > 
> ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> > 
> > 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message