You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2005/04/15 14:25:23 UTC

Getting parameters from a Cocoon Forms

Hi,


I'm trying to get some parameters from a Cocoon Forms but I'm a little 
confused.

When the form is valid,
Should I :
1 - get them in the flowscript (using form.getModel();) :
    if Yes, is there a way to dynamically  get the parameters
2 - display them with a jx template.

Or I am totally wrong ?


Maybe I can get  them directly from my "jx" document!!


Thanks Lionel

-- 
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90


Re: Getting parameters from a Cocoon Forms

Posted by Aurélien DEHAY <ad...@zorel.org>.
Hello.

Le vendredi 15 avril 2005 à 14:25 +0200, Lionel Crine a écrit :
> Hi,
> 
> 
> I'm trying to get some parameters from a Cocoon Forms but I'm a little 
> confused.
> 
> When the form is valid,
> Should I :
> 1 - get them in the flowscript (using form.getModel();) :
>     if Yes, is there a way to dynamically  get the parameters

Yes. What do you mean by «dynamically»? 

> 2 - display them with a jx template.

Yes.

> 
> Or I am totally wrong ?

No, you're right.

> 
> 
> Maybe I can get  them directly from my "jx" document!!

I don't think it's possible, the forms is controlled by flowscript, you
must use flowscript to give the values to jx document. You should look
at the supersonic examples (in samples/blocks/tour).

> 
> 
> Thanks Lionel

Rgds.


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