Hi  Christian,
OK, I've been doing some work on this issue, and it is now fixed, I think,
in master.

It's required changes to both core and the wicket viewer, so it'll get
released in isis-1.1.0 and isis-wicket-viewer-1.1.0 (probably a Feb
timeframe).

It works through a new annotation, @Bulk.  If added to an action (either an
entity action or a service action to be contributed), then the action is
rendered in the table view.  It is called for each of the checked entities
in the table.

@Bulk actions are slightly different from regular actions (hence the
explicit annotation) in that any business rules (hidden, disabled or
validation) are NOT called.  Therefore it is the responsibility of the
programmer to guard for this; the method should just do nothing if its
preconditions are not met.

Also, at this point in time, @Bulk actions cannot take arguments.  That is,
an entity action must be a no-arg, while a contributed service action
should take precisely 1 argument.

To try this out, you'll need to build Isis from source, of course.

Rob/Kevin/other devs:
I think this design should degrade gracefully for other viewers such as
Scimpi and HTML that don't yet understand this new annotation; they will
simply continue to render in the same way.

Let me know how you get on.
Dan


On 17 January 2013 18:35, Jeroen van der Wal <[email protected]> wrote:

> Hi Christian,
>
> The intention is that methods on the the repository are picked up as a
> "contributed action" when their return type is void and have a single
> parameter. We've checked but apparently It doesn't work. A ticket has been
> raised [1]
>
> I don't know if this mechanism could also be applied to collections, will
> have to find out.
>
> Cheers,
>
> Jeroen
>
> [1] https://issues.apache.org/jira/browse/ISIS-304
>
>
>
> On Wed, Jan 16, 2013 at 10:43 PM, Christian Steinebach <
> [email protected]> wrote:
>
> > Hi!
> >
> > In the ToDo application, when listing AllToDos there are check boxes
> > available for each row of the table.
> > How can the selections be processed?
> >
> > Is it possible to add check boxes to the table view of collections, such
> > as  'Dependencies' (in the ToDo application) and process
> > them, i.e. mark some dependencies for removal?
> > I could not find any hint in the documentation.
> >
> >            Thanks in advance
> >                   Christian
>

Reply via email to