Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D320310D76 for ; Mon, 14 Apr 2014 17:46:17 +0000 (UTC) Received: (qmail 10577 invoked by uid 500); 14 Apr 2014 17:46:00 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 10489 invoked by uid 500); 14 Apr 2014 17:45:56 -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 10212 invoked by uid 99); 14 Apr 2014 17:45:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 17:45:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.221.34.4] (HELO mailhost.etecture.de) (83.221.34.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 17:45:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.etecture.de (Postfix) with ESMTP id E9A644DB9F for ; Mon, 14 Apr 2014 19:45:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mailhost.etecture.de Received: from mailhost.etecture.de ([127.0.0.1]) by localhost (mailhost.intern.etecture.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3I_YrtP5TAaj for ; Mon, 14 Apr 2014 19:45:03 +0200 (CEST) Received: from exchange2010.intern.etecture.de (exchange2010.intern.etecture.de [172.29.0.40]) by mailhost.etecture.de (Postfix) with ESMTP id 1DC574DB60 for ; Mon, 14 Apr 2014 19:45:03 +0200 (CEST) Received: from [172.28.2.44] (172.28.2.44) by exchange2010.intern.etecture.de (172.29.0.40) with Microsoft SMTP Server (TLS) id 14.3.181.6; Mon, 14 Apr 2014 19:45:02 +0200 Message-ID: <534C1E9E.4040503@etecture.de> Date: Mon, 14 Apr 2014 19:45:02 +0200 From: Christian Smolka User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Subject: Validating multiple components as one X-Enigmail-Version: 1.6 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Originating-IP: [172.28.2.44] X-Virus-Checked: Checked by ClamAV on apache.org Hi to everybody! My little problem is about validating multiple input fields as a single one. So, I have three DoB fields (one for the day, one for the month and one for the year) that should be validated as a single date. While using Wicket 1.5 we overwrote AjaxEventBehavior#getEventHandler() and returned a custom made JavaScript that serialized the three fields like this: StringBuffer buffer = new StringBuffer("wicketAjaxPost('") .append(this.getCallbackUrl()).append("', "); for (String id : this.getInputIds()) { buffer.append("wicketSerialize(Wicket.$('").append(id).append("')) + "); } buffer.setLength(buffer.length() - 3); return buffer; This worked pretty well. But I have to migrate the application to Wicket 6 and this doing does work anymore. As far as I understood the new Ajax-way, it isn't possible anymore to provide a custom script like the one above. But how can I restore the old behavior? Do I have to put the fields into a form and submit the whole form to validate it? Thanks in advance! --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org