cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <reinh...@apache.org>
Subject Re: [cocoon3] Passing parameters with Invocation
Date Tue, 16 Jun 2009 09:39:15 GMT
Thorsten Scherler wrote:
> On Mon, 2009-06-15 at 11:16 +0200, Steven Dolg wrote:
>> Hi,
>>
>> Passing parameters into the sitemap will work when you do it this way:
>>
>> sitemap:
>>
>> <map:match pattern="*">
>>   <map:generate src="xml/{map:1}.xml"/>
>>   <map:transform src="xsl/{map:1}.xsl">
>>     <map:parameter name="firmaElectronica" value="{jexl:firmaElectronica}"/>
>>     <map:parameter name="hash" value="{jexl:cocoon.request.hash}"/>
>>   </map:transform>
>>   <map:serialize/>
>> </map:match>
>>
>>
>> invocation:
>>
>> ObjectModel objectModel = new ObjectModel(new HashMap<String, Object>());
>> objectModel.put("firmaElectronica", "My Parameter Value");
>> invocation.setObjectModel(objectModel);
> 
> Yeah doing it this way works well. 
> 
>>
>> The stuff under "cocoon.request" is only available when there is a real 
>> HttpServletRequest and it is put inside the parameters 
>> (o.a.c.s.u.HttpContextHelper).
>>
>>
>> I hope that's what you need... ;-)
> 
> Yeah thank you very much. BTW my current problem to use c3 is that my
> client needs a stable release. Are there plans to do a release soon?

yes, but we need a third positive vote for the several Cocoon
subprojects, that C3 depends on, first (see
http://cocoon.markmail.org/message/ggyv5gknsesjrkyp). IIRC you're a
Cocoon PMC member and could help out :-p

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________

Mime
View raw message