cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <>
Subject Re: How do we call Actions from CForms
Date Mon, 19 Jul 2004 10:49:12 GMT

Madhav_Matta wrote:

> Hello Marc
> Thanks for your reply

pls, keep discussions on the list!

> Are you referring to this example. This uses flowscript. Can I get a example

it doesn't use flowscript.
in fact it doesn't *use* anyhting.

point is: it is not that form definition that decides from where and 
hoew it is being used...

> in which a CForm directly calling a Action.

the misconception is here: the form doesn't call anything, it is 
passive. (it's the lowest in the food-chain, the puppet-on-the-string 
abused by each and any controller that desires)

so the form is referenced from the controller (be that an action, 
flowscript or whatnot) see:

and then placed into the request and/or session context so the choosen 
(by the controller) view can link in its value into some template:

that template must have a form/@action attribute pointing to the url 
handling it:

The sitemap will need to declare that URL to be handled by an action again!

(BTW: you would have arrived here if you had done a local search in the 
sitemap for the action-names referenced at the position I guided you 
earlier. Not that I mind helping you some more, I'm just assuming you 
can use the extra help in discovering how the knots are tied together here)

hoping this showed the missing link,


> form1.xml
> Regards
> Madhav
> -----Original Message-----
> From: Marc Portier [] 
> Sent: Monday, July 19, 2004 3:37 PM
> To:
> Subject: Re: How do we call Actions from CForms
> You will find most examples grabbing the entered values using flowscript.
> You can however still use actions in combintation with CForms, see 
> sample 1 in the distribution for how to tackle that.
> (
> ap.xmap?annotate=1.10#33)
> regards,
> -marc=
> Madhav_Matta wrote:
>>How can we call Action from CForms and pass the values submitted in the 
>>form to the action class. To incorporate the same which Action class 
>>from cocoon should I Extend?
>>Information on this appreciated.
>> Madhav Matta
>>This email (including any attachments) is intended for the sole use of 
>>the intended recipient/s and may contain material that is CONFIDENTIAL 
>>AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or 
>>copying or distribution or forwarding of any or all of the contents in 
>>this message is STRICTLY PROHIBITED. If you are not the intended 
>>recipient, please contact the sender by email and delete all copies; 
>>your cooperation in this regard is appreciated.

Marc Portier                  
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                          

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message