All,
Newbie here. Using Wicket 1.5.x.
How can i change the number of tabs based on dropdown choice in the form?
In my initial page contructor, I have just 1 tab. Then if user chooses a
particular value in drop down in the form, I want 3 tabs. I tried a)
form.render b) form.replace(myAjaxTabbedPanelRef) <-- Both these throw
error saying can't render after initial render.
So my class has these member instances
form, atp (which is AjaxTabbedPanel) and tabList(which is List<ITab> )..
Initially I populate the tabList with only one tab like this
If i detect my dropdown change, i do this
- tabList.clear()
- tabList.add() with 3 AbstractTab in it.
- atp = new AjaxTabbedPanel("tabs", tabList)
- form.replace(atp) <<-- throws Cannot modify component hierarchy
after render phase
Same if i try form.remove() and form.add(atp)
How do i make the page refresh with new tabs
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/changing-number-of-tabs-tp4651102.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]