1 16 package org.apache.cocoon.woody.formmodel; 17 18 import org.apache.cocoon.woody.util.DomHelper; 19 import org.w3c.dom.Element ; 20 21 36 public class SubmitDefinitionBuilder extends ActionDefinitionBuilder { 37 38 public WidgetDefinition buildWidgetDefinition(Element widgetElement) throws Exception { 39 40 SubmitDefinition definition = (SubmitDefinition)super.buildWidgetDefinition(widgetElement); 41 definition.setValidateForm(DomHelper.getAttributeAsBoolean(widgetElement, "validate", true)); 42 return definition; 43 } 44 45 protected ActionDefinition createDefinition() { 46 return new SubmitDefinition(); 47 } 48 } 49 | Popular Tags |