Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-992

[WON'T FIX] Extend Isis metamodel and Wicket viewer so that a "delete" action can be automatically provided for deleteable objects.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • viewer-wicket-1.7.0, core-1.7.0
    • 2.0.0-M3
    • Core, Viewer Wicket
    • None

    Description

      per [1],

      @DomainObject(
      deleteable=true
      ...
      )
      public class MyClass

      { .. }

      could be used to automatically generate a delete() action:

      public void delete(Entity entity) {
      this.getContainer().remove(entity);
      this.getContainer().flush();
      }

      ~~~~
      However, there are some things that need to be thought through here. For an explicitly coded action there would be all the annotations/metadata in @Action and @ActionLayout. Where would that information be specified if the action is synthesized on the fly? Would the @DomainObject annotation need to be extended instead as, for example:

      @DomainObject(
      deleteAction=@Action(...),
      ...
      )

      I'm not completely convinced the extra complexity is worth it to save four lines of code.

      [1] http://isis.markmail.org/thread/jdylmfxrzdryhrlq

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: