cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Martínez Peña <carlos.marti...@uib.es>
Subject Posible Bug in Cforms
Date Mon, 29 Sep 2008 12:54:18 GMT
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


Mime
View raw message