Return-Path: Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: (qmail 90075 invoked from network); 3 Jul 2009 12:37:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jul 2009 12:37:26 -0000 Received: (qmail 4330 invoked by uid 500); 3 Jul 2009 12:37:35 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 4292 invoked by uid 500); 3 Jul 2009 12:37:35 -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 4282 invoked by uid 99); 3 Jul 2009 12:37:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 12:37:35 +0000 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=PLING_QUERY,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.216.200] (HELO mail-px0-f200.google.com) (209.85.216.200) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 12:37:25 +0000 Received: by pxi38 with SMTP id 38so1307763pxi.14 for ; Fri, 03 Jul 2009 05:37:04 -0700 (PDT) Received: by 10.140.192.9 with SMTP id p9mr149984rvf.118.1246624624657; Fri, 03 Jul 2009 05:37:04 -0700 (PDT) Received: from Inbox ([166.133.157.68]) by mx.google.com with ESMTPS id g14sm15995488rvb.54.2009.07.03.05.37.01 (version=SSLv3 cipher=RC4-MD5); Fri, 03 Jul 2009 05:37:03 -0700 (PDT) Message-ID: <4a4dfb6f.0e538c0a.708c.ffffe9ff@mx.google.com> MIME-Version: 1.0 content-class: From: Jeremy Thomerson Subject: RE: Can't add a Form component to an Item in RefreshingView!? Date: Fri, 3 Jul 2009 07:37:02 -0500 Importance: normal X-Priority: 3 To: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked by ClamAV on apache.org Hard to help you without seeing code / markup. Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -----Original Message----- From: Philip Watson Sent: Friday, July 03, 2009 3:23 AM To: users@wicket.apache.org Subject: Can't add a Form component to an Item in RefreshingView!? I'm new to Wicket. I'm a little impatient with this one... so here goes. I have a RefreshingView, with each item getting a Fragment component added to it in the populateItem() method. Each of these Fragment components only contain Labels. All is well here. However, whenever I add a single Fragment component that contains a Form I get an exception: "java.lang.ClassCastException: org.apache.wicket.markup.RawMarkup cannot be cast to org.apache.wicket.markup.ComponentTag" What I'm trying to do here is when an item is selected on a list, it renders the selected item as a Form to be edited rather than being displayed in labels. Only ONE line is selected at a time, so only need the one form showing. Everything else is fine... Java/markup hierarchy match, model usage is all good. I can get the Fragment component containing the form to work outside a RefreshingView. So obviously it has trouble rendering Forms inside a RefreshingView repeater. Can't work it out. Any help will be much appreciated. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org