cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Martínez <carlos.marti...@uib.es>
Subject CForms problem with multi-value binding with attribute
Date Tue, 10 Feb 2009 12:23:31 GMT
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: carlos.martinez@uib.es
========================================================================


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


Mime
View raw message