@UiHandler("addDynamicTextboxbutton")
void addMoreTextbox(ClickEvent event) {
textboxplaceholder.add(new TextBox(),"textboxplace");
}
when addDynamicTextboxbutton button is clicked, this method is executed and new textbox is created. how to have another button, so that when click, will get all the values from each of the “textbox()” ? or is it necessary to put name “new textbox(“name”)” so that i can get all their values? what is the best practice way to do this?
If
textboxplaceholderis and extend of aComplexPanel, for exampleFlowPanelyou could simply iterate over the children of theFlowPanel: