code: private void addButtons() {
  		// Validation Button
  		WButton buttonValidate = new WButton("Validate and Update Bean");
  		add(buttonValidate);
  		buttonValidate.setAction(new ValidatingAction(messages.getValidationErrors(), layout) {
  			@Override
  			public void executeOnValid(final ActionEvent event) {
  				WebUtilities.updateBeanValue(layout);
  				messages.success("OK");
  			}
  		});
  
  		// Update Bean
  		WButton buttonUpdate = new WButton("Update Bean");
  		add(buttonUpdate);
  		buttonUpdate.setAction(new Action() {
  
  			@Override
  			public void execute(final ActionEvent event) {
  				WebUtilities.updateBeanValue(layout);
  			}
  		});
  
  		// Reset Inputs
  		WButton buttonReset = new WButton("Reset Inputs");
  		add(buttonReset);
  		buttonReset.setAction(new Action() {
  			@Override
  			public void execute(final ActionEvent event) {
  				layout.reset();
  			}
  		});
  
  		// Reset Bean
  		WButton buttonBean = new WButton("Reset Bean");
  		add(buttonBean);
  		buttonBean.setAction(new Action() {
  			@Override
  			public void execute(final ActionEvent event) {
  				InputBeanBindingExample.this.setBean(new MyDemoBean());
  			}
  		});
  
  		add(new WButton("submit"));
  	}
docs: Setup the action buttons.