You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Carlos Martínez Peña <ca...@uib.es> on 2008/09/29 14:54:18 UTC

Posible Bug in Cforms

Hi,

I have a problem in cforms binding with value of child field. I have a  
select field that have two values (1,2) and for the value 1 it has a  
field with a binding value.

Definition:

<fd:field state="active" required="true" id="accio">
<fd:datatype base="string"/>
<fd:label>select
</fd:label>
<fd:validation/>
<fd:selection-list>
<fd:item value="1">
<fd:label>Text1</fd:label>
</fd:item>
<fd:item value="2">
<fd:label>Text2</fd:label>
</fd:item>
</fd:selection-list>
</fd:field>
<fd:union case="accio" id="union-accio">
<fd:widgets>
<fd:group state="active" id="1">
<fd:widgets>
<fd:field state="active" required="true" id="emailnou">
<fd:label>Field item txt</fd:label>
<fd:hint>hint</fd:hint>
<fd:validation>
<fd:length max="100" min="0">
<fd:failmessage/>
</fd:length>
</fd:validation>
<fd:datatype base="string"/>
</fd:field>
</fd:widgets>
</fd:group>
</fd:widgets>
</fd:union>

Binding:

<fb:value path="ITEM[@Tipus='C'][@Id='accio']/VALORS_ITEM/VALOR" id="accio"/>
<fb:union path="ITEM[@Tipus='C'][@Id='accio']/VALORS_DOMINI" id="union-accio">
<fb:group path="VALOR[@Codi='1']/ITEMS" id="1">
<fb:value path="ITEM[@Tipus='C'][@Id='emailnou']/VALORS_ITEM/VALOR"  
id="emailnou"/>
</fb:group>
</fb:union>

When i put estat="output" in the child field (emailnou) it works and  
when i put a value in the binding of the father field it also works  
(value 1).

thanks.

Carlos.



----------------------------------------------------------------




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