Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-08 Thread Paul Bors
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

replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread Vishal Popat
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

Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread vp143
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

Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread Martin Grigorov
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

Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread vp143
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. ---

Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread Martin Grigorov
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

replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-06 Thread Vishal Popat
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