You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2013/10/09 00:09:42 UTC
[jira] [Created] (ISIS-559) When a @Bulk action is invoked, an
interaction context (available via a ThreadLocal) should provide additional
contextual information.
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)