Dan Haywood created ISIS-559:
--------------------------------

             Summary: When a @Bulk action is invoked, an interaction context 
(available via a ThreadLocal) should provide additional contextual information.
                 Key: ISIS-559
                 URL: https://issues.apache.org/jira/browse/ISIS-559
             Project: Isis
          Issue Type: New Feature
          Components: Archetypes, Core, Viewer: Wicket
            Reporter: Dan Haywood
            Assignee: Dan Haywood
             Fix For: archetype-wrj-1.0.4, viewer-wicket-1.3.0, core-1.3.0


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;
    }




--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to