cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "depub2" <dep...@mxsi.com>
Subject RE: Defect: booleanfield (checkbox) submit-on-change does not work
Date Tue, 21 Sep 2004 21:46:52 GMT
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




Mime
View raw message