Hi, show us the complete stack trace. Sven On 11.04.2017 17:46, Sokab wrote: > Hi everyone! Maybe someone know what I am doing wrong. I follow this > https://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.html > > > and this: > http://www.roseindia.net/tutorials/wicket/tab-wicket.shtml > > > and I try to add Tabs wicket but I can't (Home page worked well before > adding this 'Tabs Wicket' ) ". I have this error: > > Unexpected RuntimeException > Last cause: Cannot modify component hierarchy after render phase has started > (page version cant change then anymore) > > Home.html: > > ... > > > > HOME Page > > >
[tabbed panel will be here] >
> > > > > > > > Home.java: > public class Home extends WebPage{ > > public Home() { > > NavomaticBorder navomaticBorder = new > NavomaticBorder("navomaticBorder"); > > List tabs = new ArrayList(); > > tabs.add(new AbstractTab(new Model("firstTab")) { > @Override > public Panel getPanel(String panelId) { > return new TabPanel1(panelId); > } > }); > > tabs.add(new AbstractTab(new Model("secondTab")) { > @Override > public Panel getPanel(String panelId) { > return new TabPanel2(panelId); > } > }); > > // navomaticBorder.add( new AjaxTabbedPanel("tabs", tabs) ); > navomaticBorder.add( new TabbedPanel("tabs", tabs) ); > add(navomaticBorder); > } > } > > //############################################################# > TabPanel1.html: > > > TODO supply a title > > > > > > This is tab - panel 1 > > > > > > TabPanel1.java: > public class TabPanel1 extends Panel{ > > public TabPanel1(String id) { > super(id); > } > } > //############################################################# > TabPanel2.html: > > > TODO supply a title > > > > > > This is tab - panel 2 > > > > > > TabPanel2.java: > public class TabPanel2 extends Panel{ > > public TabPanel2(String id) { > super(id); > } > } > //############################################################# > > What am I doing wrong? Thank You for any advice. > > -- > View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-tabs-does-not-work-properly-tp4677657.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org > For additional commands, e-mail: users-help@wicket.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org