cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunter D'Hondt <gunter.dho...@sofico.be>
Subject Re: woody static selection list: values from 1 to 99
Date Mon, 31 Jan 2005 13:18:59 GMT
thing is that I'm not using flowscript but apples; ofcoz I can place it 
into the code but I was just wondering if it can be done declaratively; 
something like setting a range of values

Gunter

 



Reinhard Poetz <reinhard@apache.org> 
31-01-2005 14:03
Please respond to
users@cocoon.apache.org


To
users@cocoon.apache.org
cc

Subject
Re: woody static selection list: values from 1 to 99






Gunter D'Hondt wrote:
> Hi,
> 
> Is there a way to easily add a field into the form definition that 
> declares a static selection list with values from 1 to 99. Ofcoz it 
would 
> work when adding 99 item-lines but is there a more fancy way of doing 
> this? Also without making the list dynamic and putting another pipeline 
on 
> it.
> 
>   <wd:field id="score" required="true">
>     <wd:label>Your score:</wd:label>
>     <wd:datatype base="string"/>
>     <wd:selection-list>
>       <wd:item value="1"><wd:label>1</wd:label></wd:item>
>       <wd:item value="2"><wd:label>2</wd:label></wd:item>
>       <wd:item value="3"><wd:label>3</wd:label></wd:item>
>       <wd:item value="4"><wd:label>4</wd:label></wd:item>
>       <wd:item value="5"><wd:label>5</wd:label></wd:item>
>       <wd:item value="6"><wd:label>6</wd:label></wd:item>
>      ...
>       <wd:item value="99"><wd:label>99</wd:label></wd:item>
>     </wd:selection-list>
>   </wd:field>


you could set the values in flowscript using a for loop.

-- 
Reinhard

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




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


Mime
View raw message