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 C9BE410C8D for ; Thu, 6 Feb 2014 13:25:53 +0000 (UTC) Received: (qmail 8591 invoked by uid 500); 6 Feb 2014 13:25:52 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 8202 invoked by uid 500); 6 Feb 2014 13:25:52 -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 8189 invoked by uid 99); 6 Feb 2014 13:25:51 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Feb 2014 13:25:50 +0000 Received: from localhost (HELO mail-ob0-f173.google.com) (127.0.0.1) (smtp-auth username mgrigorov, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Feb 2014 13:25:50 +0000 Received: by mail-ob0-f173.google.com with SMTP id vb8so2164498obc.4 for ; Thu, 06 Feb 2014 05:25:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=nAUEBw7PB5mUpuyQZqIpjn9lrYijKWkQQXntwy7TdpU=; b=kHAWbFpnn2QDXPs6Ctg+HQbUQ4IwNfK+4WORc8Md3oXSm0W0MY0MHI6kcw7KkOJ26A mhu1+YevTsbzwliQv26pzGL4lIiYRnYb9LQfun9kstCehRL6Km81P6SxwGmLVl/bwBq8 PS186lYOW6s69OCkCfcmrgvE1H8OvbvXoKF++O6ZNtdEHs2iyRIV2ZmieYhKj8YJ+rGe O4eXR9z7/HvIfweFO/2pw5NGopfppWdtnAmQqvyPSItwRQ9JtbWXXPQUmtQeF2Hi8n0+ vqA5YqhyD8rjIsgNWy8Cwfe43OxUOL8OEKF5biqi58pWTWTajGQDE861V3zM2bZptQRg /bMA== X-Received: by 10.182.232.4 with SMTP id tk4mr7055041obc.9.1391693149677; Thu, 06 Feb 2014 05:25:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.214.9 with HTTP; Thu, 6 Feb 2014 05:25:08 -0800 (PST) In-Reply-To: <1391692657913-4664246.post@n4.nabble.com> References: <449A9981-96B0-48E0-8B2B-149ECB0505D2@cipriati.co.uk> <1391692657913-4664246.post@n4.nabble.com> From: Martin Grigorov Date: Thu, 6 Feb 2014 14:25:08 +0100 Message-ID: Subject: Re: replaceWith method in Panel not working with AjaxLazyLoadPanel To: "users@wicket.apache.org" Content-Type: multipart/alternative; boundary=f46d0445178fd2b1f404f1bccfd5 --f46d0445178fd2b1f404f1bccfd5 Content-Type: text/plain; charset=UTF-8 On Thu, Feb 6, 2014 at 2:17 PM, vp143 wrote: > This is what I am doing: > > final Panel emptyPanel = new EmptyPanel("additionalInfo"); > emptyPanel.setOutputMarkupId(true); > item.add(emptyPanel); > > IndicatingAjaxFallbackLink additionalInfoLink = new > IndicatingAjaxFallbackLink("additionalInfoLink") { > @Override > public void onClick(AjaxRequestTarget target) { > MyNewPanel info = new MyNewPanel(emptyPanel.getId()); > emptyPanel.replaceWith(info); > target.add(emptyPanel); > ^^ replace with: target.add(info); > } > }; > item.add(additionalInfoLink); > > I think this is correct? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/replaceWith-method-in-Panel-not-working-with-AjaxLazyLoadPanel-tp4664232p4664246.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org > For additional commands, e-mail: users-help@wicket.apache.org > > --f46d0445178fd2b1f404f1bccfd5--