CommonAttributes commonAtts = JXPathBindingBuilderBase.getCommonAttributes(element);
String id = DomHelper.getAttribute(element, "id");
String path = DomHelper.getAttribute(element, "path");
Script loadScript = null;
if (commonAtts.loadEnabled) {
Element loadElem = DomHelper.getChildElement(element, BindingManager.NAMESPACE, "load-form");
if (loadElem == null) {
throw new BindingException("Element \"load-form\" is missing (" +
DomHelper.getLocation(element) + ")");
}
loadScript = JavaScriptHelper.buildScript(loadElem);
}
Script saveScript = null;
if (commonAtts.saveEnabled) {
Element saveElem = DomHelper.getChildElement(element, BindingManager.NAMESPACE, "save-form");
if (saveElem == null) {
throw new BindingException("Element \"save-form\" is missing (" +
DomHelper.getLocation(element) + ")");