cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joose Vettenranta <jo...@iki.fi>
Subject flowscript + forms + dynamic selection list + passing information
Date Mon, 30 Aug 2004 06:29:19 GMT
Hi,

normally when creating selection list for forms, is done like this:

<fd:selection-list src="cocoon:/list.xml" dynamic="true" />

but now I have integer created in flowscipt and that needs to be passed 
to that selection-list.

How?

Can I use request-object to pass that integer or session or something? 
Small pseudo like this:


flowscript:
var i = 5;
form.showForm ("form.xml");
...

form-def.xml:
<fd:selection-list src="cocoon:/list.xml" dynamic="true" />

sitemap:

<map:match pattern="list.xml">
  <map:generate type="xsp" src="list.xsp">
   <map:parameter name="i" value="{value of i from flowscript}" />
  </map:generate>
  ...
</map:match>

how this can be done?

Thanks,

Joose

--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


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


Mime
View raw message