I have a repeater widget displaying a list of data provided form a
Collection in a bean.
When I insert a record in the form an empty row is immediately displayed,
however, the method in wb:on-insert-row/wb:[EMAIL PROTECTED] is not
executed. This method is defined in the bean class.

When I submit the form I get an NoSuchMethodException on insertBean.

I saw that the ID field of my repeater doesn't get a value. Where is this
set? Is this important?
Adding an ID value manually in the form doesn't solve the above problem
though.

In the bind.xml :
    <wb:on-insert-row>
      <wb:insert-bean classname="be.bvar.admin.links.Link"
      addmethod="addLink" />
    </wb:on-insert-row>
  </wb:repeater>
</wb:context>

in the form.xml
    <wd:repeater-action id="addlink" action-command="add-row"
repeater="links">
      <wd:label>Add link</wd:label>
    </wd:repeater-action>
  </wd:widgets>
</wd:form>

in the template.xml:
  <wt:widget id="addlink"/>
</wt:form-template>

Anything missing?

Bert



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to