Re: Adding Panel(s) at Runtime (dynamically)

2008-02-08 Thread Ayodeji Aladejebi
//HTML div wicket:id=panelListView div wicket:id=runtimePanelItem/div /div your ListView model which is expected to be a List, determines the number of Panels to be dynamically created //Java ListView panelListView= new ListView(panelListView, model){ public void populateItem(ListItem item){

Re: Adding Panel(s) at Runtime (dynamically)

2008-02-08 Thread Edvin Syse
Hi, Use a ListView or some other Repeater-component and implement a model that returns a list of the classes that should be created as panels. If you need a wicket:id on the surrounding div, that's fine, but not needed. You would then do WebMarkupContainer cont = new

Adding Panel(s) at Runtime (dynamically)

2008-02-08 Thread mehdi b
Hi all, I want to add some panels to my web page and the number of panels is unknown. I want a div wicket:id=cont/div in my template page and add needed panels to this div (the number of panels is determined at run time). Besides, I want a surrounding div class=a/div for each dynamic panel on