Hi,

I'am trying to save a multievaluated field into a XML. It works fine with this binding

<fb:context path="." direction="save">
<fb:multi-value id="favorits" parent-path="LLISTA_FAVORIT" row-path="FAVORIT"/>
</fb:context>

But when i try to insert the value into an attribute it doesn't work. (It only save me the last checkbox i checked)

<fb:context path="." direction="save">
<fb:multi-value id="favorits" parent-path="LLISTA_FAVORIT" row-path="FAVORIT/@Codi"/>
</fb:context>


Definition
<fd:multivaluefield id="favorits" state="active">
             <fd:label>Llista de favorits</fd:label>
             <fd:datatype base="string" />
             <fd:validation>
               <fd:value-count max="3" min="0">
                   <fd:failmessage>Error</fd:failmessage>
               </fd:value-count>
           </fd:validation>
           <fd:selection-list src="cocoon://myurl"/>
</fd:multivaluefield>

Template

<ft:widget id="favorits">
        <fi:styling label="true"/>
        <fi:styling list-type="checkbox" />
</ft:widget>

Thanks in advance.

--
========================================================================
Carlos Martínez Peña
Centre de Tecnologies de la Informació
Universitat de les Illes Balears
Cra. Valldemossa km 7.5 E-07122 Palma
Baleares  Spain
tel.: +34 971 17 20 32
e-mail: [email protected]
========================================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to