addButton(new TextButton("确定", new SelectHandler() {
public void onSelect(SelectEvent event) {
if (name.getValue()==null || name.getValue().trim().equals("")
|| group.getValue() == null) {
AlertMessageBox alert=new AlertMessageBox("警告", "必填项不能为空");
alert.show();
}else{
submit();
}
}
}));