Return-Path: X-Original-To: apmail-isis-users-archive@www.apache.org Delivered-To: apmail-isis-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F262618151 for ; Sun, 27 Sep 2015 17:48:50 +0000 (UTC) Received: (qmail 74148 invoked by uid 500); 27 Sep 2015 17:48:50 -0000 Delivered-To: apmail-isis-users-archive@isis.apache.org Received: (qmail 74107 invoked by uid 500); 27 Sep 2015 17:48:50 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 74096 invoked by uid 99); 27 Sep 2015 17:48:50 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Sep 2015 17:48:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 20CCEC5C87 for ; Sun, 27 Sep 2015 17:48:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.099 X-Spam-Level: **** X-Spam-Status: No, score=4.099 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_COUK=1.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id P4i65_1YJgV7 for ; Sun, 27 Sep 2015 17:48:41 +0000 (UTC) Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [209.85.223.179]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id F235B20562 for ; Sun, 27 Sep 2015 17:48:40 +0000 (UTC) Received: by ioii196 with SMTP id i196so155200010ioi.3 for ; Sun, 27 Sep 2015 10:48:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=QY1DjInA/ofHhwqwkXzlouWdAbXJJnML8mLfpcmp1y4=; b=OmR/aLyomvyDFHLoAIJqT/F14KW4NDyo8N1BiCYR1f1EHqauCEb1IO5VZwQyGMRK8k +VsxykDiESm5nER8Pqj766c2e2PuQcKqXIyJVY4OafmUElO47RpSOD6ORum0HrurEQcF xi7UidsqIuJ8QaqPe2HM1RRyyaxjnZFdqw470C3cO8QlnZrJ/E0EwdUKoB07i3ii79UN qJ2VBe9O53QDG68HuZHidAATiEEXmcb6OiNsixz0hCtQfZCeQath7GDeOJEftIQ/nP2u PI4ek6nOkxY9snF0/2La3HhMMob51QPF3KVHFen/YyQ5UbmzgDTjI9+CnX7Qooc4P2tR GpPA== X-Gm-Message-State: ALoCoQnqyclfGWgcl+Bd8mL453IFhFcuV+neYrS3lNgtJqWU6LXXux6xOuAuujivsbMjcrarWmPQ MIME-Version: 1.0 X-Received: by 10.107.11.154 with SMTP id 26mr17446829iol.105.1443376114226; Sun, 27 Sep 2015 10:48:34 -0700 (PDT) Received: by 10.107.169.31 with HTTP; Sun, 27 Sep 2015 10:48:34 -0700 (PDT) X-Originating-IP: [82.69.89.226] Received: by 10.107.169.31 with HTTP; Sun, 27 Sep 2015 10:48:34 -0700 (PDT) In-Reply-To: <6837f78910772e4397e91899168998056409d68b@ssw.solcon.nl> References: <6837f78910772e4397e91899168998056409d68b@ssw.solcon.nl> Date: Sun, 27 Sep 2015 19:48:34 +0200 Message-ID: Subject: Re: Invalid autoComplete Support method? From: Dan Haywood To: users Content-Type: multipart/alternative; boundary=001a113f7e7c90f7610520be302c --001a113f7e7c90f7610520be302c Content-Type: text/plain; charset=UTF-8 If that's the reason, then we should fix this. Matthias, could you try out John's suggestion, and if it's correct then raise a ticket in our JIRA? Thx, Dan On 27 Sep 2015 18:46, wrote: > 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 > > > > --001a113f7e7c90f7610520be302c--