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 D2628E029 for ; Fri, 7 Dec 2012 09:56:51 +0000 (UTC) Received: (qmail 37296 invoked by uid 500); 7 Dec 2012 09:56:50 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 37091 invoked by uid 500); 7 Dec 2012 09:56:50 -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 37063 invoked by uid 99); 7 Dec 2012 09:56:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 09:56:49 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of reiern70@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qa0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 09:56:45 +0000 Received: by mail-qa0-f45.google.com with SMTP id j15so1806689qaq.11 for ; Fri, 07 Dec 2012 01:56:24 -0800 (PST) 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; bh=GUaP8jVp9kqsp3HG0GJUx6GgJafYGFf5BnAnsk8HErU=; b=TaN6M0mXf25qh/P99VRfrTllYqvN36RNJ+cZ8LlMh/P9nU+8CPW9mPfSubI1RZi2Qp /46ZSYmBAwQpVPv9XgdGdDM/CEKXhkThl7UbVm5gagkPKNK+MT3RPA8CCdX2mkRN2/zP Er/8gO+VwExN9+ocDhafOxioHROdAJiqyVry+oV5TyLyPfp6tDWyJawa0t78vAyi9/dS VGcbc0bxDRIEjDBh1DFW97/5uK26+gqYM7tgs8nQ4SsWANqWbF6HvMrfPWgs07ElZHkR ba3GmhOMPxtqFhS8J/tRY4TBH9CkGnryInU3ce9pJKP3dqNL4JDh47VZCN3qmFjICSvo wrDA== MIME-Version: 1.0 Received: by 10.229.137.131 with SMTP id w3mr1772001qct.40.1354874184419; Fri, 07 Dec 2012 01:56:24 -0800 (PST) Received: by 10.49.18.130 with HTTP; Fri, 7 Dec 2012 01:56:24 -0800 (PST) In-Reply-To: References: <1354825771744-4654565.post@n4.nabble.com> Date: Fri, 7 Dec 2012 10:56:24 +0100 Message-ID: Subject: Re: AjaxLazyLoadingPanel finished event? From: Ernesto Reinaldo Barreiro To: users@wicket.apache.org Content-Type: multipart/alternative; boundary=002354790f447a4ba304d0403a6f X-Virus-Checked: Checked by ClamAV on apache.org --002354790f447a4ba304d0403a6f Content-Type: text/plain; charset=ISO-8859-1 Martin. Would it make sense to add class /** * Instance finder. * */ public static final class Instance { /** * * @return The instance of AjaxRequestTarget. */ public static AjaxRequestTarget get() { return RequestCycle.get().find(AjaxRequestTarget.class); } } to AjaxRequestTarget interface so that one can do AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get() on 1.5.x... Or there is no much gain in doing that? On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov wrote: > AjaxRequestTarget.get() is the API for Wicket 1.5 > In Wicket 6 ART is an interface and there is no way to have static method, > so getRequestCycle().find(IRequestHandler.class) is introduced. It can be > used for any impl of IRequestHandler, not just AjaxRequestTarget. > > > On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro < > reiern70@gmail.com> wrote: > > > Martin. > > > > Wouldn't AjaxRequestTarget.get() work as well? > > > > On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov > >wrote: > > > > > Hi, > > > > > > Indeed there is no explicit method for this. > > > The only way I see is to > > > override > > > > > > org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent > > > and use getRequestCycle().find(AjaxRequestTarget.class) to get the > target > > > and use it. > > > > > > Please file a ticket for improvement. > > > > > > > > > On Thu, Dec 6, 2012 at 9:29 PM, pkc wrote: > > > > > > > Hi Everyone, > > > > > > > > I need to update a feedback panel with some info after a lazy load > > panel > > > > finishes getting its data. I was looking for a method like > > > "onPanelLoaded( > > > > AjaxRequestTarget target )" but didn't see anything so not sure how > to > > > get > > > > my feedback panel refreshed. > > > > > > > > Thanks for any tips. > > > > > > > > > > > > > > > > -- > > > > View this message in context: > > > > > > > > > > http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 > > > > > > > > > > > > > > > > > -- > > > Martin Grigorov > > > jWeekend > > > Training, Consulting, Development > > > http://jWeekend.com > > > > > > > > > > > -- > > Regards - Ernesto Reinaldo Barreiro > > Antilia Soft > > http://antiliasoft.com/ > > > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ --002354790f447a4ba304d0403a6f--