You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by "Rade, Joerg / Kuehne + Nagel / Ham GI-PS" <Jo...@Kuehne-Nagel.com> on 2015/02/24 16:48:23 UTC

Contributed.AS_ASSOCIATION

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?

Pointers to samples appreciated!


Thanks in advance
Jörg

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

Kühne + Nagel (AG & Co.) KG
Rechtsform: Kommanditgesellschaft, Bremen HRA 21928, USt-IdNr.: DE 812773878.
Geschäftsleitung Kühne + Nagel (AG & Co.) KG: Reiner Heiken (Vors.), Dirk Blesius, Martin Brinkmann, Holger Ketz, Jan-Hendrik Köstergarten, Christian Solf, Lars Wedel, Jens Wollesen.
Persönlich haftende Gesellschafterin: Kühne & Nagel A.G., Rechtsform: Aktiengesellschaft nach luxemburgischem Recht, HR-Nr.: B 18745, Geschäftsführendes Verwaltungsratsmitglied: Karl Gernandt.
Geschäftsleitung Region Westeuropa: Yngve Ruud (Vors.), Hans-Georg Brinkmann (Stellv.), Richard Huhn, Björn Johansson, Jan Kunze, Bruno Mang, Stefan Paul, Tim Scharwath, Dominic Edmonds.

Wir arbeiten ausschließlich auf Grundlage der Allgemeinen Deutschen Spediteursbedingungen (ADSp), jeweils neuester Fassung. Wir verweisen insbesondere auf die vom Gesetz abweichenden Haftungsbeschränkungen von Ziffer 23 und 24 ADSp. Den vollständigen Text der ADSp übersenden wir Ihnen gerne auf Anfrage und können Sie auch unter http://www.kuehne-nagel.com einsehen. Ergänzend wird vereinbart, dass (1) Ziffer 27 ADSp im Rahmen internationaler Übereinkommen weder unsere Haftung noch die Zurechnung des Verschuldens von Leuten und sonstigen Dritten zu Gunsten des Auftraggebers erweitert, und (2) wir in den im deutschen Seehandelsrecht aufgeführten Fällen des nautischen Verschuldens oder Feuer an Bord nur für eigenes Verschulden und (3) im Sinne der CMNI genannten Voraussetzungen nicht für nautisches Verschulden, Feuer an Bord oder Mängel des Schiffes haften.

Re: Contributed.AS_ASSOCIATION

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 24 February 2015 at 15:52, Dan Haywood <da...@haywood-associates.co.uk>
wrote:

>
>
>>
>> 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.
>
>
Just to close this thread off... these two pages now updated (the latter
renamed as inconsistent capitalization/link was broken)

[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-to-action-parameter.html


Dan

AW: Contributed.AS_ASSOCIATION

Posted by "Rade, Joerg / Kuehne + Nagel / Ham GI-PS" <Jo...@Kuehne-Nagel.com>.
Hi Dan,

>>     @ActionLayout(contributed = Contributed.AS_BOTH)
>>     public SortedSet<ConfigComparison> compareConfigurations(final
>> Dashboard dashboard) {
[..]
>> What am I missing?
>
>
>The action needs to have safe semantics:
>
>@Action(semantics=SemanticsOf.SAFE)
>
>otherwise, when rendered, it could cause unanticipated side-effects.

Thanks! That was it - asking is so much faster than trying out my self ...

Keep up the good work!
-j

Kühne + Nagel (AG & Co.) KG
Rechtsform: Kommanditgesellschaft, Bremen HRA 21928, USt-IdNr.: DE 812773878.
Geschäftsleitung Kühne + Nagel (AG & Co.) KG: Reiner Heiken (Vors.), Dirk Blesius, Martin Brinkmann, Holger Ketz, Jan-Hendrik Köstergarten, Christian Solf, Lars Wedel, Jens Wollesen.
Persönlich haftende Gesellschafterin: Kühne & Nagel A.G., Rechtsform: Aktiengesellschaft nach luxemburgischem Recht, HR-Nr.: B 18745, Geschäftsführendes Verwaltungsratsmitglied: Karl Gernandt.
Geschäftsleitung Region Westeuropa: Yngve Ruud (Vors.), Hans-Georg Brinkmann (Stellv.), Richard Huhn, Björn Johansson, Jan Kunze, Bruno Mang, Stefan Paul, Tim Scharwath, Dominic Edmonds.

Wir arbeiten ausschließlich auf Grundlage der Allgemeinen Deutschen Spediteursbedingungen (ADSp), jeweils neuester Fassung. Wir verweisen insbesondere auf die vom Gesetz abweichenden Haftungsbeschränkungen von Ziffer 23 und 24 ADSp. Den vollständigen Text der ADSp übersenden wir Ihnen gerne auf Anfrage und können Sie auch unter http://www.kuehne-nagel.com einsehen. Ergänzend wird vereinbart, dass (1) Ziffer 27 ADSp im Rahmen internationaler Übereinkommen weder unsere Haftung noch die Zurechnung des Verschuldens von Leuten und sonstigen Dritten zu Gunsten des Auftraggebers erweitert, und (2) wir in den im deutschen Seehandelsrecht aufgeführten Fällen des nautischen Verschuldens oder Feuer an Bord nur für eigenes Verschulden und (3) im Sinne der CMNI genannten Voraussetzungen nicht für nautisches Verschulden, Feuer an Bord oder Mängel des Schiffes haften.

Re: Contributed.AS_ASSOCIATION

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
2015-02-24 15:48 GMT+00:00 Rade, Joerg / Kuehne + Nagel / Ham GI-PS <
Joerg.Rade@kuehne-nagel.com>:

> 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