2015-02-24 15:48 GMT+00:00 Rade, Joerg / Kuehne + Nagel / Ham GI-PS <
[email protected]>:
> Hi all,
>
> in Dashboards (extends AbstractFactoryAndRepository) there is the
> following action:
>
> @ActionLayout(contributed = Contributed.AS_BOTH)
> public SortedSet<ConfigComparison> compareConfigurations(final
> Dashboard dashboard) {
> Configuration oldCfg =
> configurations.findByReleaseAndStage(dashboard.getOldRelease(), getStage());
> Configuration newCfg =
> configurations.findByReleaseAndStage(dashboard.getNewRelease(), getStage());
> return configComparisons.compareConfigurations(oldCfg, newCfg);
> }
>
> in the object (Dashboard) view I only see the button to invoke the action.
> If I use AS_ASSOCIATION there is nothing added.
>
> What do I have to change to see the resulting Set right away?
> Do I have to use List/Collection?
> What am I missing?
>
>
The action needs to have safe semantics:
@Action(semantics=SemanticsOf.SAFE)
otherwise, when rendered, it could cause unanticipated side-effects.
There was some discussion (off-list) as to whether contributed associations
should imply safe semantics, but we decided to keep it as explicit for now.
>
>
> BTW: [1] + [2] seem to need some updates to reflect the annotation changes
> with 1.8.0
> [1]
> http://isis.apache.org/more-advanced-topics/how-to-01-062-How-to-decouple-dependencies-using-contributions.html
> [2]
> http://isis.apache.org/more-advanced-topics/How-to-suppress-contributions.html
>
>
There are lots of places to update, but thanks for pointing these out.
HTH
Dan