You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2020/06/09 08:12:00 UTC
[jira] [Commented] (ISIS-2235) Mixins declared using @Property,
@Collection or @Action should propagate facets correctly
[ https://issues.apache.org/jira/browse/ISIS-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128985#comment-17128985 ]
Andi Huber commented on ISIS-2235:
----------------------------------
{quote}facets defined by @Property(...) should be copied down correctly to the corresponding facets on the action, eg domain event
{quote}
Do we have an example for this so I can test it?
> Mixins declared using @Property, @Collection or @Action should propagate facets correctly
> -----------------------------------------------------------------------------------------
>
> Key: ISIS-2235
> URL: https://issues.apache.org/jira/browse/ISIS-2235
> Project: Isis
> Issue Type: Improvement
> Components: Isis Core
> Reporter: Daniel Keir Haywood
> Assignee: Andi Huber
> Priority: Major
> Fix For: 2.0.0-M4
>
>
> 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 and @Action also ... should imply AS_ASSOCIATION and AS_ACTION respectively.
> ~~~
> Also, (and this might be a slightly different issue), the facets defined by @Property(...) should be copied down correctly to the corresponding facets on the action, eg domain event (this might need specifying more precisely...)
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)