action.setEnabled(formNode.hasFormValidation());
action.setChecked(formNode.isUseJSValidation());
}
private void setJSValidation(FormNode formNode, boolean enabled) {
EnableJSValidationCommand command = new EnableJSValidationCommand();
command.setFormNode(formNode);
command.setEnabled(enabled);
executeCommand(command);
}