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 D7A8710B7B for ; Thu, 22 Jan 2015 11:56:46 +0000 (UTC) Received: (qmail 94104 invoked by uid 500); 22 Jan 2015 11:56:46 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 94056 invoked by uid 500); 22 Jan 2015 11:56:46 -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 94044 invoked by uid 99); 22 Jan 2015 11:56:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 11:56:45 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of reiern70@gmail.com designates 209.85.220.49 as permitted sender) Received: from [209.85.220.49] (HELO mail-pa0-f49.google.com) (209.85.220.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 11:56:40 +0000 Received: by mail-pa0-f49.google.com with SMTP id fa1so1381858pad.8 for ; Thu, 22 Jan 2015 03:56:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=H7Lg+hS5puul+C9GTzh/b1wTgjfKTNRGYNErAPDTOuM=; b=pzvURPHX0i9f6H0jODlfU9UF5ntkF2Z9F6v9aIuiu9XNqc/ADjkRZcO+yPwP5j84y4 56KMbzcKOwbMKc7xm3V25IBNHPh474aFbEVjTJUpBuCTiTocOj/+lw7gi5nnDO9gpdQB 00mq9ZPU7+EkzqNFFkrjIAU8IpOrUjhdOLAvVEwb+DjzVqs27kcYTdhRSDR32FlQqJSt JOw5hsb+H0OTuJ2F6V/Li+SBAsle7m8NAPjI1ChG+AIJL/51FqBxhwwTOziD7fbaqwsE Dx7irXq5t+8xgB4/ZU4oHyiAFz+9BE9s/6+p8zWWrnVbIRN+cKgL0SkFig4c8GRbqikx SErQ== MIME-Version: 1.0 X-Received: by 10.66.146.193 with SMTP id te1mr1356886pab.109.1421927779832; Thu, 22 Jan 2015 03:56:19 -0800 (PST) Received: by 10.70.33.42 with HTTP; Thu, 22 Jan 2015 03:56:19 -0800 (PST) In-Reply-To: References: Date: Thu, 22 Jan 2015 11:56:19 +0000 Message-ID: Subject: Re: validating a form that is not visible From: Ernesto Reinaldo Barreiro To: "users@wicket.apache.org" Content-Type: multipart/alternative; boundary=047d7b6dc3ee369b7f050d3c5c3a X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6dc3ee369b7f050d3c5c3a Content-Type: text/plain; charset=UTF-8 Use a client side TAB...? So, visibility is handled at the client On Thu, Jan 22, 2015 at 11:51 AM, Andrew Geery wrote: > I have a top-level form. > > The top-level form contains two nested forms. > > The nested forms are inside of a TabbedPanel so only one is visible at a > time. > > The save button for the top-level form is always visible. The save button > submits the top-level form and submitting the top-level form also has the > effect of submitting the nested forms. > > This all is correct and works as it should. > > The issue is that Wicket (correctly) only validates the form that is on the > tab that is visible. The form that is on the tab that is not visible is > not actually being submitted so it doesn't get validated. > > In the past, I've prevented the user from switching tabs if one of the tabs > contained a validation error, but I can't do that in this case. > > When the top-level form is submitted, is there a way I can mark both forms > as visible and have Wicket validate both forms? > > Thanks > Andrew > -- Regards - Ernesto Reinaldo Barreiro --047d7b6dc3ee369b7f050d3c5c3a--