cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bert Van Kets" <b...@vankets.com>
Subject Re: saving woody data after insert
Date Mon, 23 Feb 2004 12:32:23 GMT
It works. :-D
Thanks Marcin.


----- Original Message ----- 
From: "Marcin Okraszewski" <okrasz_news@o2.pl>
To: <users@cocoon.apache.org>
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:insert-bean@addmethod 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>



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


Mime
View raw message