cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Vincelli ...@alessandro.vincelli.name>
Subject Re: Cforms Booleanfield true-param-value
Date Mon, 04 Feb 2008 08:36:56 GMT
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


Mime
View raw message