The booleanfield (checkbox)
<fi:styling submit-on-change="true"/>
fails to submit the page when the checkbox value is changed
(checked/unchecked)
and yeilds an error when the page is submitted with the field unchecked.
The incorrect behavior may be observed by adding to
~blocks/forms/forms/form2_template.xml
<fi:styling submit-on-change="true"/>
for the "choose" widget; the entire code segment (with surrounding context)
in that file would be:
<tr>
<td valign="top"><ft:widget-label id="number"/></td>
<td valign="top"><ft:widget id="number"/></td>
</tr>
<tr>
<td/>
<td valign="top"><ft:widget id="choose">
<fi:styling submit-on-change="true"/>
</ft:widget>
<ft:widget-label id="choose"/></td>
</tr>
<tr>
<td valign="top"><ft:widget-label id="sex"/></td>
<td valign="top"><ft:widget id="sex"/></td>
</tr>
Then simply access:
http://<yourserver>/cocoon/samples/blocks/forms/form2xml.flow
and verify that changing the value of the checkbox does not submit the form.
Thanks for putting this on the bug list... (and fixing it :))
David
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]