Hi, You can use: new ChildPanel(parent.getChildId())
This is how ModalWindow works, and many of the repeater components in Wicket On Sun, Feb 5, 2012 at 12:12 AM, msalman <[email protected]> wrote: > I have a panel which adds another child panel created by other users. The > problem for me is that the parent panel expects the child panel to have a > particular id ("formPanel"). The child panel will itself be a derived class > and will have a corresponding wicket:extend html file. Since there is no > setId(String id) method provided, what will be the best way to handle this > problem? > > I had thought of creating derived child panel classes with the required id > set by the derived class itself. The user will create another derived class > off former class ... but this just ends up with way too many classes > depending on future parent panels, etc. > > I hope I have not made it too complicated to understand. > > Thanks, > > -msalman > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Setting-changing-id-for-components-after-creation-tp4358004p4358004.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
