user.setAdministrator(administratorCheckBox.getValue());
user.setValidated(validatedCheckBox.getValue());
final AsyncCallback<User> loginCallback = new AsyncCallback<User>() {
public void onFailure(Throwable caught) {
MessageDialogBox dialog = new MessageDialogBox("Error", "Could not edit account.", true, true, true);
dialog.center();
}
public void onSuccess(User user) {
if (user == null) {
MessageDialogBox dialog = new MessageDialogBox("Error", "Could not edit account.", true, true, true);