cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Maté <cmat...@gmail.com>
Subject javaflow multivaluefield
Date Thu, 26 Jan 2006 16:57:40 GMT
Hi
In my javaflow I want to get values from  a multivaluefield.
This is de form definition:

<fd:multivaluefield id="drinks">

<fd:datatype base="string" />

<fd:selection-list>
        <fd:item value="Maes"/>
        <fd:item value="Jupiler"/>
        <fd:item value="Leffe"/>
        <fd:item value="Hoegaarden"/>
        <fd:item value="Coca Cola"/>
      </fd:selection-list>
</fd:multivaluefield>

In my javaflow I write:

MultiValueField mvl = (MultiValueField) form.getChild("drinks");

Object[] list = (Object[]) mvl.getValue();

but list.length is 0.

How  can I obtain the values

Mime
View raw message