cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Paul Adams <co...@colina.demon.co.uk>
Subject Binding to an fd:booleanfield
Date Thu, 01 Jul 2004 07:32:19 GMT
Binding of an xs:boolean attribute in an XML file to a form with an
fd:booleanfield does not work as I would expect it to.

For an attribute a of type xs:boolean, I would expect:

a="true" or a="1" to set the checkbox.
a="false" or a="0" or the absence of an a attribute to unset the
checkbox.
Anything else to signal a validation error.

I find that setting the a attribute to ANYTHING AT ALL (even the empty
string!) sets the checkbox, and only the absence of the attribute
unsets it.

Is this the proper behaviour? 
-- 
Colin Paul Adams
Preston Lancashire

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


Mime
View raw message