I\'m trying to declare these elements in my UiBinder XML:
You may simplify Thomas' answer (a bit) by accessing the id in uibinder like this:
TextBox
// In code behind:
@UiField(provided = true)
TextBox testTextBox = new TextBox();
...
testTextBox.setId("test");
this.initWidget(uiBinder.createAndBindUi(this));
If you use GWT Bootstrap there is a handy feature that let's you wire up everything in xml only:
TextBox