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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]