You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gary Larsen <ga...@envisn.com> on 2008/08/04 14:44:37 UTC

Selection list from multivaluefield

Hi All,

 

Is it possible to set a selection list from a multivaluefield definition on
the same form?  The multivaluefield definition would use binding
(direction=load) to move the values into the form.

 

Currently I'm using 2.1.9.  

 

Thanks!

gary


Re: Selection list from multivaluefield

Posted by Barbara Slupik <ba...@ntlworld.com>.
You can do something like this:

* definition

<fd:multivaluefield id="myField">
	<fd:datatype base="string"/>
	<fd:selection-list src="cocoon:/my-selection-list" cache="true"/>
</fd:multivaluefield>

* template

<ft:widget id="myField"><fi:styling list-type="checkbox"/></ft:widget>

* binding

<fb:value id="myField" path="myField"/>

* object

private String[] myField;

Set values in myField array and they will be automatically selected  
on the screen.

Barbara


On 4 Aug, 2008, at 1:44 pm, Gary Larsen wrote:

> Hi All,
>
>
>
> Is it possible to set a selection list from a multivaluefield  
> definition on
> the same form?  The multivaluefield definition would use binding
> (direction=load) to move the values into the form.
>
>
>
> Currently I'm using 2.1.9.
>
>
>
> Thanks!
>
> gary
>
> <winmail.dat>--------------------------------------------------------- 
> ------------
> 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