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

When a @Bulk action is invoked, an interaction context (available via a ThreadLocal) should provide additional contextual information.

    XMLWordPrintableJSON

Details

    Description

      eg:

      @Bulk
      public ToDoItem completed()

      { ... // demonstrating the use of ... final InteractionContext ctxt = InteractionContext.current.get(); @SuppressWarnings("unused") List<Object> allObjects = ctxt.getDomainObjects(); LOG.debug("completed: " + ctxt.getIndex() + " [" + ctxt.getSize() + "]" + (ctxt.isFirst() ? " (first)" : "") + (ctxt.isLast() ? " (last)" : "")); return this; }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: