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 51D82106A0 for ; Tue, 23 Dec 2014 08:03:24 +0000 (UTC) Received: (qmail 45509 invoked by uid 500); 23 Dec 2014 08:03:20 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 45471 invoked by uid 500); 23 Dec 2014 08:03:20 -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 45459 invoked by uid 99); 23 Dec 2014 08:03:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 08:03:19 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tobiassoloschenko@googlemail.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-wi0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 08:02:49 +0000 Received: by mail-wi0-f171.google.com with SMTP id bs8so10079953wib.4 for ; Tue, 23 Dec 2014 00:02:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:references:in-reply-to:to; bh=IkUqHZebR5g53C1U+YD2omSfNJpkx5ABZp0M9RQfZBU=; b=iM0UDHdlx26nq0BIRCIGlVSWq9wRLnFkZK4zIiCyRTrihp8k6SnLy+M7g5ZUXEa/ud 3COOd4WerczNDlnCfCpWd9bQksLQU17D5S3p/x9FymIjsp6UFGEESt93KoMXVNor0tWC q7UbgpJOC9ngoWXlXw1uGKsXcs8der/UxMM2AVo76+LHYnn2tUOyavkwqLSj0Gg+HIOr OXTocIeMaGgkAWulJKTR00twzwj0VdNpLuc/Zz6Xx19npPI480Ik4/JX4vQYJgZv/9gs xgLYfTCuRVfRmkpqfpBXcY/VuJc49anoyegbeOazrIDVpuAlUfiWdiMoAEYfIm3g16Jh +VoQ== X-Received: by 10.194.121.167 with SMTP id ll7mr47653682wjb.26.1419321723463; Tue, 23 Dec 2014 00:02:03 -0800 (PST) Received: from [10.160.83.96] (tmo-110-222.customers.d1-online.com. [80.187.110.222]) by mx.google.com with ESMTPSA id fo12sm16224413wic.19.2014.12.23.00.02.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Dec 2014 00:02:03 -0800 (PST) From: Tobias Soloschenko X-Google-Original-From: Tobias Soloschenko Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: setResponsePage with AjaxButton not working correctly Message-Id: <17DC55DF-8B74-4E44-869F-51A3D8B767E0@gmail.com> Date: Tue, 23 Dec 2014 09:02:02 +0100 References: <1419319071326-4668881.post@n4.nabble.com> In-Reply-To: To: "users@wicket.apache.org" X-Mailer: iPhone Mail (12B435) X-Virus-Checked: Checked by ClamAV on apache.org Hi, I also had troubles to set the response page within an ajax callback in the p= ortlet apps. The workaround for me was not to switch the whole page, but to w= rap the content into one panel and switch this. I think it might has somethi= ng to do with the markup of the portlet container, because it is not valid x= ml, but I don't know this for sure. kind regards Tobias > Am 23.12.2014 um 08:32 schrieb Martin Grigorov : >=20 > Hi, >=20 > I guess it is a problem with wicketstuff-portlet library. > Hopefully someone more experienced with Portlets will help you! >=20 > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov >=20 >> On Tue, Dec 23, 2014 at 9:17 AM, Milind wrote: >>=20 >> Hello all, >>=20 >> Currently i am using wicket 6.18 with liferay-portal-6.2-ce-ga2, >>=20 >> Below is code written in TestPage.java >>=20 >> AjaxButton testButton =3D new AjaxButton("testButton", form) >> { >> private static final long serialVersionUID =3D 1L; >>=20 >> @Override >> protected void onSubmit(AjaxRequestTarget target, Form form) >> { >> setResponsePage(SecondPage.class, pageParams) >> } >> } >>=20 >> When testButton is added inside
then only it calls the onSubmit() >> method else not. >>=20 >> and after adding it to tag, its not working for setResponsePage() >> call, and shows below error inside Ajax-debug-window. >>=20 >> ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Error: >> Invalid XML: >> Home - Test > width=3Ddevice-width" name=3D"viewport" /> > charset=3DUTF-8" http-equiv=3D"content-type" /> > href=3D"http://localhost:8150/test-theme/images/favicon.ico" rel=3D"Short= cut >> Icon" />... >>=20 >>=20 >>=20 >>=20 >> Please revert if anyone knows this issue. >>=20 >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/setResponsePage-with-AjaxButto= n-not-working-correctly-tp4668881.html >> Sent from the Users forum mailing list archive at Nabble.com. >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >> For additional commands, e-mail: users-help@wicket.apache.org >>=20 >>=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org