Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 757BD200497 for ; Wed, 23 Aug 2017 21:56:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 73C9A1698B1; Wed, 23 Aug 2017 19:56:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B83501698B0 for ; Wed, 23 Aug 2017 21:56:10 +0200 (CEST) Received: (qmail 82924 invoked by uid 500); 23 Aug 2017 19:56:08 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 82913 invoked by uid 99); 23 Aug 2017 19:56:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2017 19:56:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2B7FD1A1F98 for ; Wed, 23 Aug 2017 19:56:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.793 X-Spam-Level: ** X-Spam-Status: No, score=2.793 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hD8SF9SLWCIX for ; Wed, 23 Aug 2017 19:56:05 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 05A1B5F570 for ; Wed, 23 Aug 2017 19:56:04 +0000 (UTC) Received: from [192.168.178.59] ([217.224.165.181]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Lo0CW-1d4eAP1sqm-00fxCJ for ; Wed, 23 Aug 2017 21:55:57 +0200 Subject: Re: Validation messages from properties file not working. To: users@wicket.apache.org References: <1503426824188-4678575.post@n4.nabble.com> <1503508680369-4678588.post@n4.nabble.com> From: Sven Meier Message-ID: <753b2f92-0589-669d-921c-7b4df58b5791@meiers.net> Date: Wed, 23 Aug 2017 21:55:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1503508680369-4678588.post@n4.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K0:g/e3u/spANFIbpODsmxLl4GQRSPRPafNiEnyBSR6cVKt20luOBO AfAVK5Fe5MvDNeKLTAql7l1EAzldvKhaKdteDaGCRDgy6vM9kDvh6pnF7kg9f7OmuCVr6BQ /ec4Aoo1UPd7ubMEb55O/zJKCjyekzM6ODMqaKEjnd0XFrFBCGhIlPBkchIumO0sNzFXdcR cFIpEAAh6JnR5IfkY8Yfg== X-UI-Out-Filterresults: notjunk:1;V01:K0:iSvXBIgsh84=:fiRMKcTGsvsR8F2+Yz8+NW q+y0fEfbPhw9LPDQIj6tnegmSDCpLGxgdbJHN9p8U6QcKCfgOOepOGvCkeISLvW2EBNGN0Daj XEBybEETGW4pdnaj+bgfndT/fLlf8BWu20ycCkSusZ7pdosY8Dqmsq8PycCoctkT01AcA7KnO oPy+8so4iUMuH29jpGZoxDYpsAzgCXqZHeBEODtK5xTiyN/pDHqa0zVfkncBqGzRuZlb14MWZ GjP4+McKlstoYB07APzZBUxDRPaNKl0CDz+9ncnZpL/e2PI2Zi6mAQo0hbENLBmJ0ewHU47dm QTJQyHqr4+tRuxJWJZXjkhObrVKoF89c0JdzhTGCB20iHEtqO9tlGQHnefnq3rIgbYpQMDcOM 2Io466Q/576rLOFi0VUEHYWGLEbK7FcRioVyBIRgEXGkeMWL6soXCZsHYW0TbKbf7KVSr1KuA ixs1ZcHg/Md13hC3FrobhYBJNfynGQX6Z3tD8YXgkgPV5pRn2LztF3cnCu1xLqIJNveo9J8d3 LE3Yg1kmHDS2KqbfdFOkSgWFogV9zd+Q/7O6O7wom7BG6dznksl8/SoDYMLzkzhwzbrAe1KMb Tgja9PltTjJYzXWf/b1IdBp8u5tUPrHFuCetipRlMGZoAtwDXrziibxASuu4Q4eXU7+X+vuC1 S1wyP//7Drx1rH3qB68XdttlmqHpveayXOKWBacafk41qI7oygSjLsstb0FKtukValIC++0Cg U3EpXFQk9cpjmLBvx0bIimerMVztv/VCpNte2ppAXc8sJrPiHQ6kKneD0RQ= archived-at: Wed, 23 Aug 2017 19:56:11 -0000 Hi, FormComponent has a special error() method for ValidationErrors. You're hitting another method on Component, that just accepts any serializable: ((WebMarkupContainer) form.get("wmcCaptchaError")).error(new ValidationError().addKey("CaptchaRequired")); Try the following instead: ((WebMarkupContainer) form.get("wmcCaptchaError")).error(form.getString("CaptchaRequired")); Regards Sven Am 23.08.2017 um 19:18 schrieb Entropy: > Yeah, it's definitely related to the component that the > ComponentFeedbackPanel relates to. If I use a TextField, it finds the > message perfectly. I change it to a web markup container or hiddenfield, > and it fails to find the message. Same name, same code doing the validation > and the adding of the validation key. > > I tried a TextField with visibility set to false and that didn't even show > the error (which makes sense). > > -- > View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validation-messages-from-properties-file-not-working-tp4678575p4678588.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org > For additional commands, e-mail: users-help@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org