It works. :-D
Thanks Marcin.
----- Original Message -----
From: "Marcin Okraszewski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 22, 2004 9:34 PM
Subject: Re: saving woody data after insert
> I think it might be the same I had some time ago. What type does the
> /addLink/ method expects to receive? I found that it must be exactly the
> declared class (be.bvar.admin.links.Link in your case). It doesn't match
> methods that expect to receive a parent class of the class you
> specified. If this is the case you can simply fix it in this way:
>
> public addLink(be.bvar.admin.links.Link link) {
> super.addLink(link);
> }
>
> Regards,
> Marcin Okraszewski
>
>
> > 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]