Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.9.0
-
None
-
Mac OS X 10.10.2
Eclipse Java EE IDE for Web Developers. Version: Mars Release (4.5.0) Build id: 20150621-1200
JDK 1.8.0_60
Description
When using the autoComplete support method for an action with return type Collection<T> the meta model validation reports an error.
It works, however, when using List instead of Collection.
:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ISIS METAMODEL VALIDATION ERRORS ################################################################
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
domainapp.dom.simple.Connections#autoComplete0Create: has prefix autoComplete, is probably a supporting method for a property, collection or action. If the method is intended to be an action, then rename and use @ActionLayout(named="...") or ignore completely using @Programmatic
Please inspect the above messages and correct your domain model.
for this:
...
//region > create (action)
public static class CreateDomainEvent extends ActionDomainEvent<Connections> {
public CreateDomainEvent(final Connections source, final Identifier identifier, final Object... arguments)
}
@Action(
domainEvent = CreateDomainEvent.class
)
@MemberOrder(sequence = "3")
public Connection create(
final @ParameterLayout(named="System A") System systemA)
public Collection<System> autoComplete0Create(@MinLength(value = 1) final String search)
{ return systems.listAll(); }...
}
while using choices instead of autoComplete works fine:
public Collection<System> choices0Create() { return systems.listAll(); }
// public Collection<System> autoComplete0Create(@MinLength(value = 1) final String search)
{ // return systems.listAll(); // }Attachments
Issue Links
- is duplicated by
-
CAUSEWAY-1218 Allow autoComplete supporting method to return a Collection as well as a List or array.
- Closed