You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by jcplerm <jc...@ameritech.net> on 2003/09/25 06:50:18 UTC

Missing repeater.size form parameter (Woody)

I am trying to use a Woody "repeater" in a form.
The form fields get populated correctly by using XML binding and successfully displayed.

But when I submit the form, the submit action does not find any elements in the repeater (repeater.getSize()==0).

I added some trace calls to the Repeater.java code and noticed that it tries to read a form parameter named "repeater.size", which is absent in the HTML content on the browser. Hence getSize() returns 0.

Has anyone seen this before, and has a solution?

Thanks,

jlerm

Re: Missing repeater.size form parameter (Woody)

Posted by jcplerm <jc...@ameritech.net>.
I added the following to the form template and it worked...:

      <wt:repeater-size id="xxx"/>
  ----- Original Message ----- 
  From: jcplerm 
  To: users@cocoon.apache.org 
  Sent: Wednesday, September 24, 2003 11:50 PM
  Subject: Missing repeater.size form parameter (Woody)


  I am trying to use a Woody "repeater" in a form.
  The form fields get populated correctly by using XML binding and successfully displayed.

  But when I submit the form, the submit action does not find any elements in the repeater (repeater.getSize()==0).

  I added some trace calls to the Repeater.java code and noticed that it tries to read a form parameter named "repeater.size", which is absent in the HTML content on the browser. Hence getSize() returns 0.

  Has anyone seen this before, and has a solution?

  Thanks,

  jlerm