[
https://issues.apache.org/jira/browse/ISIS-559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Haywood resolved ISIS-559.
------------------------------
Resolution: Fixed
> 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)