Create new instance of a widget from UiBinder field

I have a TextField form inside a window. Created with UiBinding. Next to the TextField is a button. I wanted to know if it was possible to create a new TextField widget when that button was pressed using UiBinder?This is what I have:Window class:

When I click the button it all it does is move the button from the right side of the text field to the left. I have more textfields in the window so I played around to see what it was really doing. It's taking that field and just moving it next to the button.Is there a way I can create a new TextField underneath the original?

Widgets can only be drawn in one place at a time, so adding it to a new position necessarily removes it from the old one. Instead, consider something like this in your uihandler:

Code:

hPanel.add(new TextField());

You'll probably need some other specific wiring to keep track of this new field - if building an Editor, the ListEditor class might be helpful here to create multiple TextFields all bound to different entries in the List.