cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Deininger <>
Subject CForms error: Invalid submit id (no such widget)
Date Fri, 25 Nov 2005 20:57:15 GMT

I coded a form using CForms. Inside this form is a repeater which
allows to add/delete rows. I invoke this form via the following line
inside an apple:

appleResponse.sendPage("Form-submission_form-Pipe", viewData);

Everything is working fine, I can insert and delete arbitrary rows of
my repeater element.

If I display the same form (same definition / template / pipeline) via
a javascript flowscript, the form shows up correctly, showing a single
row of my repeater element. Adding a second row works, too. However,
if I try to add a third row, I get the error message:

Error calling flowscript function submission
Invalid submit id (no such widget): authors.1.add

Any ideas what might cause that error?

Thanks in advance

BTW, I compiled my Cocoon from cocoon-BRANCH_2_1_X_20051029103845.tar.gz

Here is the definition of my form:

    <fd:repeater id="authors" initial-size="1" min-size="1" max-size="10" >
        <fd:output id="id">
          <fd:datatype base="long" />
        <fd:field id="author" required="true">
          <fd:datatype base="string"/>
        <fd:field id="institution" required="true">
          <fd:datatype base="string"/>
        <fd:row-action id="add" command="add-after">
          <fd:label><i18n:text key="submit.links.add"/></fd:label>
        <fd:row-action id="delete" command="delete">
          <fd:label><i18n:text key="submit.links.delete"/></fd:label>
        <fd:row-action id="moveUp" command="move-up">
          <fd:label><i18n:text key="submit.links.move-up"/></fd:label>
        <fd:row-action id="moveDown" command="move-down">
          <fd:label><i18n:text key="submit.links.move-down"/></fd:label>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message