Wicket dynamically add components to form
I'm having trouble adding components to a form dynamically. What I'm trying to do is: Give the user a drop-down list with items he can choose like name, age, ... When a user presses add: there comes a (label + inputbox) in 1 component wich allows him to put in the value. You might think I could hide those components wich aren't selected but the user is also able to add values to the drop-down list. The problem I have is how to add and remove components (label+ inputbox) without having wicket:ids in the HTML? This is what I'm trying to add: <wicket:panel> <div wicket:id="hldValue"> <label