@@ -0,0 +1,2096 @@
+/*%0A *  Licensed to the Apache Software Foundation (ASF) under one%0A *  or more contributor license agreements.  See the NOTICE file%0A *  distributed with this work for additional information%0A *  regarding copyright ownership.  The ASF licenses this file%0A *  to you under the Apache License, Version 2.0 (the%0A *  %22License%22); you may not use this file except in compliance%0A *  with the License.  You may obtain a copy of the License at%0A *%0A *        http://www.apache.org/licenses/LICENSE-2.0%0A *%0A *  Unless required by applicable law or agreed to in writing,%0A *  software distributed under the License is distributed on an%0A *  %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A *  KIND, either express or implied.  See the License for the%0A *  specific language governing permissions and limitations%0A *  under the License.%0A */%0Apackage demoapp.dom.mixins;%0A%0Aimport org.apache.isis.applib.annotation.Action;%0Aimport org.apache.isis.applib.annotation.ActionLayout;%0Aimport org.apache.isis.applib.annotation.DomainObject;%0Aimport org.apache.isis.applib.annotation.Nature;%0Aimport org.apache.isis.applib.annotation.Property;%0Aimport org.apache.isis.applib.value.Markup;%0A%0Aimport lombok.RequiredArgsConstructor;%0Aimport lombok.val;%0A%0A//TODO does not work neither when inline or sidebar/model, disabled for now%0A//@Action//(associateWith = %22note%22)%0A//@ActionLayout(named = %22Update Note (with Help)%22)%0A//@DomainObject( // %3C-- activates the help extension below%0A//        nature=Nature.VIEW_MODEL, %0A//        objectType = %22demo.MixinDemo_mixedInViewModel%22) %0A@RequiredArgsConstructor%0Apublic class MixinDemo_mixedInViewModel %7B%0A    %0A    private final MixinDemo holder;%0A    %0A    public MixinDemo act(String newNote) %7B%0A        holder.setNote(newNote);%0A        return holder;%0A    %7D%0A    %0A    public String default0Act() %7B%0A        return holder.getNote();%0A    %7D%0A    %0A    // -- USER HELP EXTENSION%0A    %0A    @Property%0A    public Markup getHelp() %7B%0A        %0A        val html = %22%3Ch1%3EHelp%3C/h2%3E%22%0A                + %22%3Cp%3EHere we could fill in some advisory text to get you started.%3C/p%3E%22;%0A        return new Markup(html);%0A    %7D%0A    %0A%7D%0A 

add extended mixin demo, yet does not work