Ok, I am going to answer myself on that one: changing
this.add(popupHolder);
to
this.addToBorder(popupHolder);
dis it. I had read the migration guide and the Javadoc several times but just
did not understand it
(correctly)...
J.
On 24.02.2012 14:00, Jürgen Lind wrote:
Hi,
I've just begun to move my application up to 1.5. and I now getting an error in
a place that worked
just fine in 1.4. The problem seems to lie within creating a border component
as it gives me the
following error message:
org.apache.wicket.WicketRuntimeException: You can not add a component's parent
as child to the
component (loop): Component: [BorderBodyContainer [Component id =
filterTreePopup_body]]; parent ==
child: [WebMarkupContainer [Component id = popupHolder]]
This happens in this line:
InlinePopup filterTreePopup = new InlinePopup("filterTreePopup", "filterTree_"
+ this.markupId);
This is the code for the border component:
public InlinePopup(String id, String name) {
super(id);
WebMarkupContainer popupHolder = new WebMarkupContainer("popupHolder");
popupHolder.setOutputMarkupId(true);
popupHolder.setMarkupId(name + "PopupHolder");
WebMarkupContainer popup = new WebMarkupContainer("popup");
popup.setOutputMarkupId(true);
popup.setMarkupId(name + "Popup");
popup.add(getBodyContainer());
popupHolder.add(popup);
this.add(popupHolder);
}
I have no idea what could cause the problem, the component ordering seems to be
ok from
my point of view and, as I said before, the code works just fine in 1.4.12.
Cheers,
J.
--
Dr. Jürgen Lind
iteratec GmbHFon: +49 (0)89 614551-44
Inselkammerstrasse 4 Fax: +49 (0)89 614551-10
82008 Unterhaching Web: www.iteratec.de
Sitz und Registergericht der iteratec GmbH: München HRB 113 519
Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
--
Mit freundlichen Grüßen,
Jürgen Lind
--
Dr. Jürgen Lind
iteratec GmbHFon: +49 (0)89 614551-44
Inselkammerstrasse 4 Fax: +49 (0)89 614551-10
82008 Unterhaching Web: www.iteratec.de
Sitz und Registergericht der iteratec GmbH: München HRB 113 519
Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org