You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by depub2 <de...@mxsi.com> on 2004/09/14 19:39:20 UTC

Defect: booleanfield (checkbox) submit-on-change does not work

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: Defect: booleanfield (checkbox) submit-on-change does not work

Posted by depub2 <de...@mxsi.com>.
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




How to cleanly indent Cocoon Forms binding xml

Posted by depub2 <de...@mxsi.com>.
Is there a flag or some way to get cleanly indented xml from the Cocoon
Forms binding framework?


David




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