Hi Erik,

If you mark the collection as non-editable, then I suspect this might fix
it. Could you give that a try?

Thx
Dan



On Tue, 21 Jan 2020, 10:05 Dan Haywood, <d...@haywood-associates.co.uk>
wrote:

> Thanks, Erik, I'll take a look.
>
>
> On Tue, 21 Jan 2020, 09:59 Erik de Hair, <e.deh...@pocos.nl> wrote:
>
>> //
>>
>> Hi,
>>
>> I was able to reproduce the problem in a sample application. I've
>> created an issue [1] and shared the sample app [2]
>>
>> Please let me know if you need more information.
>>
>> Erik
>>
>> [1] https://issues.apache.org/jira/browse/ISIS-2269
>> [2] https://github.com/erikdehair/ISIS-2269
>>
>>
>> On 1/17/20 11:30 AM, Erik de Hair wrote:
>> > Hi,
>> >
>> > We have an order form (view model) with some collection defined as
>> >
>> > @Collection()
>> > @CollectionLayout(named = "Routed subnet(s)")
>> > @Getter @Setter
>> > private List<RoutedSubnet> routedSubnetsPC;
>> >
>> > When I call the following method on an integration test I get an
>> > exception:
>> >
>> > getWrapperFactory().wrap(orderForm).getRoutedSubnetsPC();
>> >
>> > Exception:
>> >
>> > java.lang.IllegalArgumentException:
>> > dummypackage.OrderForm#routedSubnetsPC: more than one ImperativeFacet
>> > for method getRoutedSubnetsPC , with inconsistent intents:
>> >
>> [CollectionAccessorFacetViaAccessor[type=PropertyOrCollectionAccessorFacet,method=public
>>
>> > java.util.List dummypackage.OrderForm.getRoutedSubnetsPC()],
>> > CollectionAddToFacetViaAccessor[type=CollectionAddToFacet,method=public
>> > java.util.List dummypackage.OrderForm.getRoutedSubnetsPC()],
>> >
>> CollectionRemoveFromFacetViaAccessor[type=CollectionRemoveFromFacet,method=public
>>
>> > java.util.List dummypackage.OrderForm.getRoutedSubnetsPC()],
>> > CollectionClearFacetViaAccessor[type=CollectionClearFacet,method=public
>> > java.util.List dummypackage.OrderForm.getRoutedSubnetsPC()]]
>> >
>> > Any ideas on this?
>> >
>> > Thanks,
>> > Erik
>> >
>>
>

Reply via email to