See ToDoItems class in the Todo app demo.
It is a domain service and a repository for ToDoItem objects.

I think you need a Purchase repository for PurchaseItem objects.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Sat, Nov 1, 2014 at 10:59 PM, Gabriel Malimpensa <[email protected]>
wrote:

> Yes, I am aware of this.
> My doubt is how to create a form to persist an entity like the others, but
> I need to persist such entity with a list of items.
> My example is: an entity Purchase and many entities PurchaseItem. I need
> that Isis renders a list or a table, something like this.
>
> I don't know if I explained correctly. I hope so.
> Sorry for my english.
>
> Gabriel Malimpensa.
> Sao Carlos, Sao Paulo, Brazil.
>
> 2014-11-01 18:18 GMT-02:00 Martin Grigorov <[email protected]>:
>
> > Hi,
> >
> > Are you aware of DomainObjectContainer ?
> > See http://isis.apache.org/reference/DomainObjectContainer.html and all
> > links in "Object management" section at
> > http://isis.apache.org/documentation.html
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Sat, Nov 1, 2014 at 9:26 PM, Gabriel Malimpensa <
> [email protected]
> > >
> > wrote:
> >
> > > Good afternoon.
> > >
> > > I am trying to create a domain service with a method to finish a
> > purchase.
> > > So, I have to set in the purchase a list of items, and I don't know
> how I
> > > do this.
> > > I imagine the interface with a field to find items and a table or a
> list
> > > showing the selected items by the user.
> > >
> > > Any tips?
> > >
> > > Thank you.
> > > Gabriel Malimpensa.
> > > Sao Carlos, Sao Paulo, Brazil.
> > >
> >
>

Reply via email to