@PostConstruct
public void init() {
final Button create = new Button("Create", new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
Customer customer = new Customer(custFirstName.getText(), custLastName.getText(), custPostalCode.getText());
customerService.call(creationCallback).createCustomer(customer);
}
});
Button get = new Button("Get (Simulate Error)", new ClickHandler() {