code: private void createExampleUi() {
  		add(new WHeading(HeadingLevel.H2, "Contacts"));
  
  		add(repeater);
  		WButton addBtn = new WButton("Add");
  		addBtn.setAction(new Action() {
  			@Override
  			public void execute(final ActionEvent event) {
  				addNewContact();
  			}
  		});
  		newNameField.setDefaultSubmitButton(addBtn);
  
  		WButton printBtn = new WButton("Print");
  		printBtn.setAction(new Action() {
  			@Override
  			public void execute(final ActionEvent event) {
  				printEditedDetails();
  			}
  		});
  
  		WFieldLayout layout = new WFieldLayout();
  		add(layout);
  		layout.addField("New contact name", newNameField);
  		layout.addField((WLabel) null, addBtn);
  		layout.addField("Print output", console);
  		layout.addField((WLabel) null, printBtn);
  
  		// Ajax controls to make things zippier
  		add(new WAjaxControl(addBtn, new AjaxTarget[]{repeater, newNameField}));
  		add(new WAjaxControl(printBtn, console));
  	}
docs: Add all the required UI artefacts for this example.