c.replacewith(a) is the same as c.getparent().replace(a) -igor
On 8/23/07, Artur W. <[EMAIL PROTECTED]> wrote: > > > > > Eelco Hillenius wrote: > > > > do: > > > > TestPanel newOne = new TestPanel(TestPanel.this.getId(), "another > > param"); > > TestPanel.this.replaceWith(newOne); <------------ > > target.addComponent(newOne); > > > > > > I didn't know about replaceWith method. It works great! Thanks a lot!!! > Artur > > -- > View this message in context: > http://www.nabble.com/Can-Panel-replace-itself---tf4318533.html#a12297058 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >