You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/10/09 00:11:42 UTC

[jira] [Commented] (ISIS-559) When a @Bulk action is invoked, an interaction context (available via a ThreadLocal) should provide additional contextual information.

    [ https://issues.apache.org/jira/browse/ISIS-559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789771#comment-13789771 ] 

ASF subversion and git services commented on ISIS-559:
------------------------------------------------------

Commit 96f4156ab7444ef4b220434b589fca7c3d5be8b5 in branch refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=96f4156 ]

ISIS-559: Bulk.InteractionContext.current.get()

- provide information about the context in which a @Bulk action is invoked.


> 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)