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 <ca...@uib.es> on 2008/02/04 08:23:40 UTC
Cforms Booleanfield true-param-value
Hello,
I'm trying to change the true-param-value of a booleanfield. I want
change the true value for '1'. The code is so simple but it doesn't works.
The Definition:
<fd:booleanfield id="miboolean" state="active">
<fd:true-param-value>1</fd:true-param-value>
<fd:label>mibooleano</fd:label>
<fd:validation>
<fd:assert test="miboolean = True()">
<fd:failmessage><i18n:text
key="sol.motsol.validacio.condicionsus" /></fd:failmessage>
</fd:assert>
</fd:validation>
</fd:booleanfield>
The Binding:
<fb:value path="VALOR" id="miboolean">
<fd:convertor datatype="boolean"/>
</fb:value>
It not give me any error but in the XML of the binding always put true
or false. I'm using a cocoon 2.1.9.
Thanks, Carlos.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cforms Booleanfield true-param-value
Posted by Alessandro Vincelli <av...@alessandro.vincelli.name>.
You can't change a boolean value for booleanfield.
You can see this for more details:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/forms/formmodel/BooleanField.html
Bye
Carlos MartÃnez ha scritto:
> Hello,
>
> I'm trying to change the true-param-value of a booleanfield. I want
> change the true value for '1'. The code is so simple but it doesn't
> works.
>
> The Definition:
>
> <fd:booleanfield id="miboolean" state="active">
> <fd:true-param-value>1</fd:true-param-value>
> <fd:label>mibooleano</fd:label>
> <fd:validation>
> <fd:assert test="miboolean = True()">
> <fd:failmessage><i18n:text
> key="sol.motsol.validacio.condicionsus" /></fd:failmessage>
> </fd:assert>
> </fd:validation>
> </fd:booleanfield>
>
> The Binding:
>
> <fb:value path="VALOR" id="miboolean">
> <fd:convertor datatype="boolean"/>
> </fb:value>
>
> It not give me any error but in the XML of the binding always put true
> or false. I'm using a cocoon 2.1.9.
>
> Thanks, Carlos.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org