wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernesto Reinaldo Barreiro <reier...@gmail.com>
Subject Re: AjaxLazyLoadingPanel finished event?
Date Fri, 07 Dec 2012 09:56:24 GMT
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 <mgrigorov@apache.org>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 <mgrigorov@apache.org
> > >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 <pkcinna@gmail.com> 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 <http://jweekend.com/>
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> > Antilia Soft
> > http://antiliasoft.com/ <http://antiliasoft.com/antilia>
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ <http://antiliasoft.com/antilia>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message