At a quick glance, looks correct.

Is your mixin in a package or subpackage of one of your modules defined in
your app manifest?. The modules define where we do the classpath scanning.

-- Dan
On 4 Jul 2016 16:28, "Hiren Budhrani" <[email protected]> wrote:

Hi all,

I need to add a collection to 2 separate classes. So I defined a mixin
class to expose the collection and have the 'destination' classes implement
an (empty) interface that is initialized in the mixin's constructor. After
that, the method used to render the collection is defined.

The mixin class is shown below:

@Mixin public class FixedPorting_portingNumbers {

    private final FixedPortingfixedPorting;
    public FixedPorting_portingNumbers(FixedPorting porting)
    {
        this.fixedPorting = porting;
    }

    @ActionLayout(contributed = Contributed.AS_ASSOCIATION)
    @Action(semantics = SemanticsOf.SAFE)
    @CollectionLayout(render = RenderType.EAGERLY)
    public List<AbstractPhoneNumber> $$()
    {
        return phoneNumberService.listAll();
    }

    @Inject PhoneNumbersphoneNumberService;
}

>From what I understood, the collection "Porting Numbers" would appear on a
class that implements "FixedPorting" but that is not the case. Are there
any steps I am missing?

Thanks for any advice,

-- 
Hiren Budhrani

Junior Programmer | Pocos bv

T+M: 088-0100721 |  [email protected]| Sales: [email protected] | Service:
[email protected]

www.pocos.nl | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel 17097024 |
btn_in_20x15twitter

Reply via email to