Yes, that's the way to do it. On Mon, 13 Nov 2017, 04:17 Paul Benedict Jabines, <[email protected]> wrote:
> Oh I think I know it. will use the FactoryService.mixin(Cutomer.class, > customer).$$(); > > On Mon, Nov 13, 2017 at 12:03 PM, Paul Benedict Jabines < > [email protected]> wrote: > > > If I have a View Model like this: > > > > @DomainObject( > > nature = Nature.VIEW_MODEL > > ) > > public class View { > > public Customer customer; > > > > public View(Customer customer) { > > this.customer = customer; > > } > > > > public void delete() { > > customer.delete(); > > } > > } > > > > where customer.delete() is a mixin action. How to call it from the view > > model? > > > > -- > > - Paul > > > > > > -- > - Paul >
