isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict Jabines <jabines...@gmail.com>
Subject How to call a mixin action from view model?
Date Mon, 13 Nov 2017 04:03:09 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message