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 61C8810FEB for ; Mon, 17 Mar 2014 11:31:42 +0000 (UTC) Received: (qmail 38188 invoked by uid 500); 17 Mar 2014 11:31:41 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 38157 invoked by uid 500); 17 Mar 2014 11:31:40 -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 38148 invoked by uid 99); 17 Mar 2014 11:31:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2014 11:31:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [173.203.187.93] (HELO smtp93.iad3a.emailsrvr.com) (173.203.187.93) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2014 11:31:34 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp12.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 95B7CF010A for ; Mon, 17 Mar 2014 07:31:13 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp12.relay.iad3a.emailsrvr.com (Authenticated sender: jens-AT-wegtam.com) with ESMTPSA id 347CFF0108 for ; Mon, 17 Mar 2014 07:31:13 -0400 (EDT) Date: Mon, 17 Mar 2014 12:31:11 +0100 From: Jens Jahnke To: users@wicket.apache.org Subject: Re: Testing a panel in isolation (component id not found). Message-Id: <20140317123111.34f6d4e9b5e8b9788ddb665c@wegtam.com> In-Reply-To: References: <20140317120048.4cc216601d2487db3fb093b8@wegtam.com> Organization: Wegtam UG X-Mailer: Sylpheed 3.3.1 (GTK+ 2.24.22; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA512"; boundary="Signature=_Mon__17_Mar_2014_12_31_12_+0100_SeR4pPTk3jQHCMKa" X-Virus-Checked: Checked by ClamAV on apache.org --Signature=_Mon__17_Mar_2014_12_31_12_+0100_SeR4pPTk3jQHCMKa Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, 17 Mar 2014 13:05:57 +0200 Martin Grigorov wrote: MG> This is the right way. MG> Can you show us the code that causes this error ? MG> #startComponentInPage() should not fail with such error ... the exception is thrown at the line with tester.startComponentInPage,=20 but here is the code of my custom panel: public class MyCustomPanel extends Panel { protected String name =3D ""; protected String icon =3D ""; protected String genre =3D ""; protected String description =3D ""; public MyCustomPanel(String id, IModel model) { super(id, model); prepareDefaultVariables(model.getObject()); } protected void prepareDefaultVariables(MyDataModel data) { name =3D data.getName(); icon =3D data.getIconName(); genre =3D data.getGenre(); description =3D data.getDescription(); } protected void renderDefaultVariables() { add(new Label("name", name)); PackageResourceReference iconRef =3D new PackageResourceReference(g= etClass(), icon); add(new Image("icon", iconRef)); add(new Label("genre", genre)); add(new Label("description", description)); } } BTW: I'm using wicket 6.12 and are currently unable to upgrade to 6.14. :-| Regards, Jens --=20 17. Lenzing 2014, 12:19 Homepage : http://www.wegtam.com SAFETY I can live without Someone I love But not without Someone I need. --Signature=_Mon__17_Mar_2014_12_31_12_+0100_SeR4pPTk3jQHCMKa Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBCgAGBQJTJt0AAAoJEETVTa+eyI8OpF0P/RTuPNc7yN36frmVlDsoOAc1 B5x1Ga6xfBgTQh+JlMZyPXzEvMxeoC8eDYjZJeGm2K6ja2W9BqLBVFk+dx/tgs0W eXhDulR6CcL+DHw4hjXXiDURP6Y24EaUh4SHkN7lADF5ps3xW9v5uRT83UgpiJLc N0RUs7m6gjrgSzPMDxL6ySCsYKZNUk9elOXzSKiT+Btke8xUBVh+N5mINVhC3bbt LHZ6Qne/94XRFXuQWPNyMnY3Z2pzK7ZNMASKGOe5xnops+npG0b0b/TSfrrs0yMP GBbR1KViEemvjqEEAsbmUtPnG5BJL8//0CCeJbzwpc55sZd3lyLjfvgoWvG1qToy PBq2T1HvIKAeOYEhD8kWmP131qr4uiwcaRloYrA2VoIQve9eHoqtIMea5EGVWVsO 9sZjy4aciMVnRtJIuB4/Ing2wxpdtSR4E5WUIKWZBWzXBbuswFL5rWYdqrjjzEXD x4jv3dCuxboFPsumrgHyoJ6EbZNHMfAMaWx4eGgO2NOvy0xWK7BU+AGYHrmNt08G jAozUqVEjWN3wDDBR/Y6HYEO3d31wvAZxAhruf3cpYmoG5vhya2sj2/fCXjNxzxn qI6f21eZlRMd2DsjgYlT2yNFD6tPlX8GGCQjBxB3szmq7V2KiJIKFACzpKnn8POv DGYyY4YHzRkfXs8ZjOHd =mPu7 -----END PGP SIGNATURE----- --Signature=_Mon__17_Mar_2014_12_31_12_+0100_SeR4pPTk3jQHCMKa--