Hi Sven,
attached you can find a quickstart which demonstrates the problem. I've
added 3 test pages all with a TextField and a Panel with a TextField. For
each component, the model object is set at the onConfigure method. At the
first page both components are added to the page itself. At the second page
both components are added to the border body container of a Border
component. At the third page both components are added to a "Layout"
container (a Border component too). 
With Wicket 7.4.0 all pages are rendered without any problem, with Wicket
7.5.0 the third page isn't.  Instead the following exception is thrown:

org.apache.wicket.WicketRuntimeException: Cannot modify component hierarchy
after render phase has started (page version cant change then anymore)
     at
org.apache.wicket.Component.checkHierarchyChange(Component.java:3674)
     at org.apache.wicket.Page.dirty(Page.java:271)
     at org.apache.wicket.markup.html.WebPage.dirty(WebPage.java:332)
     at org.apache.wicket.Page.dirty(Page.java:250)
     at org.apache.wicket.Page.componentModelChanging(Page.java:904)
     at org.apache.wicket.Component.modelChanging(Component.java:2230)
     at
org.apache.wicket.Component.setDefaultModelObject(Component.java:3133)
     at
org.apache.wicket.markup.html.form.FormComponent.setModelObject(FormComponent.java:1579)
     at
com.mycompany.front.wicket.components.TestPanel.onConfigure(TestPanel.java:30)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Cannot-modify-component-hierarchy-after-render-phase-has-started-tp4676711p4676736.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to