Re: Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread eugenebalt
In other words, a Read-only panel is replaced with an Editable panel after clicking Edit: panelReadOnly.replaceWith( new panelEditable()); The panelEditable is found to have a NULL Parent ID afterwards. We need to

Re: Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread Sven Meier
The replaced component is removed from the component tree, thus it no longer has a parent. Sven On 10/25/2013 05:37 PM, eugenebalt wrote: In other words, a Read-only panel is replaced with an Editable panel after clicking Edit: panelReadOnly.replaceWith(

Re: Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread eugenebalt
Thanks Sven. I was actually talking about the new replacING component, not the old replaced one. That replacing component had NULL as its Parent. I found the solution discussed here: http://apache-wicket.1842946.n4.nabble.com/Component-parent-null-after-replace-td1890602.html The problem is it's