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 412691008E for ; Thu, 18 Jul 2013 05:44:37 +0000 (UTC) Received: (qmail 60144 invoked by uid 500); 18 Jul 2013 05:44:35 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 60123 invoked by uid 500); 18 Jul 2013 05:44:34 -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 60115 invoked by uid 99); 18 Jul 2013 05:44:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jul 2013 05:44:33 +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 [62.96.223.214] (HELO smtpout.mpc-group.com) (62.96.223.214) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jul 2013 05:44:26 +0000 Received: from SHAMEXCASEFO1.efonds.ag ([172.20.20.13]) by smtpout.mpc-group.com (8.13.3/8.13.3/MPC Linux 0.1) with ESMTP id r6I5i6qU024740 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 18 Jul 2013 07:44:06 +0200 Received: from SMUCEXEFO1.efonds.ag (192.168.110.86) by SHAMEXCASEFO1.efonds.ag (172.20.20.13) with Microsoft SMTP Server (TLS) id 14.2.342.3; Thu, 18 Jul 2013 07:44:05 +0200 Received: from s1n001.efonds.ag (192.168.122.151) by SMUCEXEFO1.efonds.ag (192.168.110.86) with Microsoft SMTP Server (TLS) id 14.2.342.3; Thu, 18 Jul 2013 07:44:05 +0200 Message-ID: <51E780A3.9070908@efonds.com> Date: Thu, 18 Jul 2013 07:44:03 +0200 From: Stefan Renz User-Agent: Postbox 3.0.8 (Macintosh/20130427) MIME-Version: 1.0 To: Subject: Re: How to hide an optional Image component? References: <51E5B2D6.4020407@efonds.com> <51E5B47E.1030305@meiers.net> In-Reply-To: <51E5B47E.1030305@meiers.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.122.151] X-Virus-Checked: Checked by ClamAV on apache.org Hi Sven, Sven Meier wrote: >> apart from asking the database _again_ for the data or presence thereof > > Whether the image is visible must be determined when the page is > rendered. The actual loading of the image is done in another request. > Thus two times to ask the databse. thanks for reminding me -- sometimes, a powerful framework such as Wicket makes you forget you work with HTTP ;-) > > Alternatively you may render a default resource (e.g. > https://www.google.com/search?q=no+image) if your database doesn't have > any data to stream back when the image is requested. > > Regards > Sven > Have a nice day. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org