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/25 10:39:57 UTC
[jira] [Closed] (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:all-tabpanel ]
Dan Haywood closed ISIS-559.
----------------------------
> 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: Archetype: ToDoApp WRJ, Core, Viewer: Wicket
> Reporter: Dan Haywood
> Assignee: Dan Haywood
> Fix For: archetype-quickstart-wrj-1.3.0, 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)