cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinh...@apache.org>
Subject Re: fd:selection-list selected item
Date Mon, 25 Apr 2005 11:09:31 GMT
Arsen A. Gutsal wrote:
> Reinhard.
> Can you please gimme some simple example of how to use controller.

see the Cocoon Forms examples, here the flowscript (= controller) of the 
carselector:

function selectCar() {
     var form = new Form("forms/carselector_form.xml");
     form.lookupWidget("make").setValue(cocoon.parameters.defaultMake);
     form.showForm("carselector-display-pipeline.jx");
     cocoon.request.setAttribute("carselectorform", form.getWidget());
     cocoon.sendPage("carselector-success-pipeline.xsp");
}

What do you use as controller? Flowscript, Actions, Apples?

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------


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


Mime
View raw message