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 13B3E108D7 for ; Mon, 24 Nov 2014 12:51:29 +0000 (UTC) Received: (qmail 68961 invoked by uid 500); 24 Nov 2014 12:51:28 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 68920 invoked by uid 500); 24 Nov 2014 12:51:28 -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 68902 invoked by uid 99); 24 Nov 2014 12:51:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2014 12:51:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mscoon@gmail.com designates 209.85.223.169 as permitted sender) Received: from [209.85.223.169] (HELO mail-ie0-f169.google.com) (209.85.223.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Nov 2014 12:51:22 +0000 Received: by mail-ie0-f169.google.com with SMTP id y20so8683334ier.14 for ; Mon, 24 Nov 2014 04:50:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=eQ965cFT6+5pFQVxsliVOW7c1Rx/m80WlEwa05aHtZU=; b=fUItWsQhe2sUTUA6brB/4clyrkdr8EbWaxSCBvF5oyQYe2MpypQLw9kngY+aMiq0+K TK9U3a3hUlBjrCLNDm5bwYwk698dJVoNITjBLKUkNM2vIPJb9tcXn772GN6IVqVRVtm8 OCh78Qd3Ttjanuz5shKDVJ/kyj1EMof0Id+pM+ShaB+BadhLOq1oMghDZVn6tBKAfEOe tfQLKT7uwvbBkH2kIhy7C9gfkkOU+Cr5bUVCRRJP7Ur730imcJqrfelce5oxPmIC9zWT J4msG1IF6gseRTVz8ancQMoy4SvUu/mLWTvX+T7b8FWiZ5gTV4w8280euYC2gSEANs30 g+4A== MIME-Version: 1.0 X-Received: by 10.107.9.65 with SMTP id j62mr17727314ioi.57.1416833416566; Mon, 24 Nov 2014 04:50:16 -0800 (PST) Received: by 10.107.136.31 with HTTP; Mon, 24 Nov 2014 04:50:16 -0800 (PST) Date: Mon, 24 Nov 2014 14:50:16 +0200 Message-ID: Subject: IComponentOnBeforeRenderListener and ListView From: mscoon To: users@wicket.apache.org Content-Type: multipart/alternative; boundary=001a113e7d6e801f2805089a3c31 X-Virus-Checked: Checked by ClamAV on apache.org --001a113e7d6e801f2805089a3c31 Content-Type: text/plain; charset=UTF-8 Hi all, I am using a FormErrorDecorator that implements an IComponentOnBeforeRenderListener in order to automatically attach a css class to form components with validation errors (see https://cwiki.apache.org/confluence/display/WICKET/Automatic+styling+of+form+errors ). Sometimes I want to manually add errors to form components and I was doing that in onBeforeRender() before the call to super.onBeforeRender(). I do this because sometimes the object being edited is in an invalid state and I want to show the validation errors right when the form opens and not after a submit. This is working fine for most cases as the errors are attached to the form components before the FormErrorDecorator runs. However, form components inside a list view are not created until the end of ListView.onBeforeRender(). This means that I cannot attach errors before this step because the list view items don't yet exist, and if I attach them after onBeforeRender they are not picked up by the FormErrorDecorator. Any ideas? Thanks, Marios --001a113e7d6e801f2805089a3c31--