cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@informatik.tu-darmstadt.de>
Subject Re: Howto call a action from the flow
Date Tue, 29 Apr 2003 20:35:40 GMT
Thorsten Mauch wrote:
> Hi 
> I want to call a cocoon action from a flow. I found 
> 
> act(type, src, param) 
> 
> but now is not clear how is hould call it. For the Locale action e.g.
> i expec the type="lcoale".
> 
> But what about the second parameter src and param ?

src is identical to @src on map:act and param is a ECMAscript
equivalent of a map passing parameters like you would do from
sitemap:

<map:act type="foo">
   <map:parameter name="one" value="123"/>
   <map:parameter name="two" value="456"/>
</map:act>

translates to

act("foo", "", {"one":"123","two":"456"})

see also 
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=102560174824115&w=2

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
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