Replace it it on the parent, then add the parent to the ajax target to be
refreshed on the screen.
~ Thank you,
Paul Bors
On Feb 6, 2014, at 5:25 AM, Vishal Popat wrote:
> Hi,
>
> I have the following panel layout:
>
> SomeOtherPanel
> AjaxLazyLoadPanel
> Panel loading with AjaxLazy
Hi,
I have the following panel layout:
SomeOtherPanel
AjaxLazyLoadPanel
Panel loading with AjaxLazyLoadPanel
PanelToReplace
I am trying to replace PanelToReplace using replaceWith within
IndicatingAjaxFallbackLink onClick method but I get the message:
Component '[EmptyPa
That was it! Thank you
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/replaceWith-method-in-Panel-not-working-with-AjaxLazyLoadPanel-tp4664232p4664257.html
Sent from the Users forum mailing list archive at Nabble.com
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-AjaxLazyLoadPa
rrect?
--
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.
---
It seems you are adding the old/removed element to the ajax request target.
You need to pass the new one instead.
Martin Grigorov
Wicket Training and Consulting
On Thu, Feb 6, 2014 at 12:19 PM, Vishal Popat
wrote:
> Hi,
>
> I have the following panel layout:
>
> SomeOtherPanel
> AjaxLazyLoadPan
Hi,
I have the following panel layout:
SomeOtherPanel
AjaxLazyLoadPanel
Panel loading with AjaxLazyLoadPanel
PanelToReplace
I am trying to replace PanelToReplace using replaceWith within
IndicatingAjaxFallbackLink onClick method but I get the message:
Component '[EmptyPa