You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2020/01/01 14:19:00 UTC

[jira] [Updated] (ISIS-2235) Mixins declared using @Property and @Collection shouldn't need to indicate contribution style.

     [ https://issues.apache.org/jira/browse/ISIS-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Keir Haywood updated ISIS-2235:
--------------------------------------
    Description: 
for example, with this mixin:
{code:java}
@Property
public class SimpleObject_self {
    private final SimpleObject simpleObject;

    public SimpleObject_self(SimpleObject simpleObject) {
        this.simpleObject = simpleObject;
    }

    @ActionLayout(contributed = Contributed.AS_ASSOCIATION)
    public SimpleObject prop() {
        return simpleObject;
    }

}
 {code}
it's necessary to specify @ActionLayout, otherwise the behaviour is contributed as both an association and an action.

The @ActionLayout should be inferred.

~~~

See the same for @Collection, also.

 

 

  was:
with this mixin:
{code:java}
@Property
public class SimpleObject_self {
    private final SimpleObject simpleObject;

    public SimpleObject_self(SimpleObject simpleObject) {
        this.simpleObject = simpleObject;
    }

    @ActionLayout(contributed = Contributed.AS_ASSOCIATION)
    public SimpleObject prop() {
        return simpleObject;
    }

}
 {code}
it's necessary to specify @ActionLayout, otherwise the behaviour is contributed as both an association and an action.

The @ActionLayout should be inferred.

 

 


> Mixins declared using @Property and @Collection shouldn't need to indicate contribution style.
> ----------------------------------------------------------------------------------------------
>
>                 Key: ISIS-2235
>                 URL: https://issues.apache.org/jira/browse/ISIS-2235
>             Project: Isis
>          Issue Type: Improvement
>            Reporter: Daniel Keir Haywood
>            Priority: Major
>             Fix For: 2.0.0
>
>
> for example, with this mixin:
> {code:java}
> @Property
> public class SimpleObject_self {
>     private final SimpleObject simpleObject;
>     public SimpleObject_self(SimpleObject simpleObject) {
>         this.simpleObject = simpleObject;
>     }
>     @ActionLayout(contributed = Contributed.AS_ASSOCIATION)
>     public SimpleObject prop() {
>         return simpleObject;
>     }
> }
>  {code}
> it's necessary to specify @ActionLayout, otherwise the behaviour is contributed as both an association and an action.
> The @ActionLayout should be inferred.
> ~~~
> See the same for @Collection, also.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)