wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: replaceWith method in Panel not working with AjaxLazyLoadPanel
Date Thu, 06 Feb 2014 13:25:08 GMT
On Thu, Feb 6, 2014 at 2:17 PM, vp143 <vishal.popat@cipriati.co.uk> 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
>
>

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