isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JohanDoornen...@filternet.nl
Subject Re: Invalid autoComplete Support method?
Date Sun, 27 Sep 2015 17:46:16 GMT
Hi Matthias,



Try to use List instead of collection. That worked for me.



Grtz 



Johan

 




----- Original Message ----

From: "Burbach, Matthias" 

To: "users@isis.apache.org" 

Sent: Zon, 27 Sep 2015 17:20

Subject: Invalid autoComplete Support method?




Hi,
hope I am using the correct channel for this question. If not please tell me where I can best
place such questions.

I am going first steps with Apache Isis by modifying the simple app. So far it works fine
but I cannot understand why I am getting:


################################################ 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 {

        public CreateDomainEvent(final Connections source, final Identifier identifier, final
Object... arguments) {

            super(source, identifier, arguments);

        }

    }


    @Action(

            domainEvent = CreateDomainEvent.class

    )

    @MemberOrder(sequence = "3")

    public Connection create(

            final @ParameterLayout(named="System A") System systemA) {

        final Connection obj = container.newTransientInstance(Connection.class);

        obj.setName(systemA.getName());

        obj.setSystemA(systemA);

        container.persistIfNotAlready(obj);

        return obj;

    }


    public Collection autoComplete0Create(@MinLength(value = 1) final String search) {

     return systems.listAll();

    }

...
}

while using choices instead of autoComplete works fine:


    public Collection choices0Create() {

    return systems.listAll();

    }

//    public Collection autoComplete0Create(@MinLength(value = 1) final String search) {

//    return systems.listAll();

//    }



Matthias

	 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message