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 F3C4BDA91 for ; Mon, 20 Aug 2012 15:45:58 +0000 (UTC) Received: (qmail 16929 invoked by uid 500); 20 Aug 2012 15:45:57 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 16867 invoked by uid 500); 20 Aug 2012 15:45:57 -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 16859 invoked by uid 99); 20 Aug 2012 15:45:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 15:45:57 +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 (athena.apache.org: domain of alecswan@gmail.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-yx0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 15:45:53 +0000 Received: by yenm4 with SMTP id m4so5738481yen.32 for ; Mon, 20 Aug 2012 08:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=J/uNOx6GgODN4YbdyByhULLZGJVIReaCc0A4gJ3lJIg=; b=u8h7KiC3ll/L8L7jD/oGDalUWFkiV/QVVsrZAnT8nFzTICyteRYmO35qJgWBjIE6FZ ssEKDXmEXwQSoaoLZmoxO9Zn2PtGKHdQgTEkveZKR+LSWXZDVooFvBJi9+2auYQJEYX1 Wv8qJXl/Z7m3sGbsJihsd1g5WmF+Ywu1ojyyvgQw2ITx2gz9HYmxVCfl35+Jt9Pw/t/5 WWemUTctaQfOYIO2ncLTs//mDrUkBsnMUJKJnCqtEBNfIH5Tdu9FNfeuW4xGNjuod6Fi bKKURwQaCEyBy2qoEIu017d6G2+gtlIh4Uy9rAbjNMx9pBnZrKlGGnHaC1a049y3ji1v dT8w== MIME-Version: 1.0 Received: by 10.60.29.228 with SMTP id n4mr10981793oeh.27.1345477532435; Mon, 20 Aug 2012 08:45:32 -0700 (PDT) Received: by 10.76.174.4 with HTTP; Mon, 20 Aug 2012 08:45:32 -0700 (PDT) In-Reply-To: References: <502C0E82.20902@step.polymtl.ca> <1345068889057-4651262.post@n4.nabble.com> Date: Mon, 20 Aug 2012 09:45:32 -0600 Message-ID: Subject: Re: Add page feedback to every AjaxRequestTarget From: Alec Swan To: users@wicket.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org It seems that I cannot access ART from the component that is not updated by that ART because that component is not rendered during the lifecycle of that ART. Here is the problem description: 1. A page is rendered with a feedback panel and a form 2. The form is later submitted via AJAX and does not add any components to = ART How in step 1 can I make sure that feedback panel is updated when form is submitted in step 2? Thanks, Alec On Mon, Aug 20, 2012 at 9:38 AM, Tibor Bl=E9nessy wrot= e: > You can access current ART associated with request by calling static > AjaxRequestTarget.get() > > Tibor > > On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan wrote: >> Thoughts, anybody? >> >> On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan wrote: >>> The main problem I am facing is that in Wicket 1.4.x I can't figure >>> out how to access ART from the component that was not added to this >>> ART, e.g. during ajax form submission. >>> >>> I tried to add AjaxFormSubmitBehavior to every Form child of the page >>> but that overrode those form ajax-submit functionality and basically >>> broke them all. Now I am thinking about adding an onclick behavior >>> which will add my component to ART to every AjaxSubmitLink child of >>> the page. But this seems to be pretty ugly. >>> >>> Thoughts? >>> >>> Thanks, >>> >>> Ale >>> >>> On Fri, Aug 17, 2012 at 4:22 PM, Alec Swan wrote: >>>> Hello, >>>> >>>> Thank you for the link. I used your code to register an >>>> ART.addListener(new AjaxFeedbackPanelUpdater()) when the page is >>>> created, but it does not get called when the form is submitted and >>>> hence it never adds the FeedbackPanel to ART of form submission. >>>> >>>> Where should I add this listener? >>>> >>>> Thanks, >>>> >>>> Alec >>>> >>>> On Wed, Aug 15, 2012 at 4:14 PM, procrastinative.developer >>>> wrote: >>>>> Hello Alec, >>>>> Could you take a look on this: >>>>> >>>>> https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/= src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: http://apache-wicket.1842946.n4.nabble.= com/Add-page-feedback-to-every-AjaxRequestTarget-tp4651257p4651262.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 >>>>> >> >> --------------------------------------------------------------------- >> 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org