public ERXJSSubmitFunction(String elementName, NSDictionary associations, WOElement woelement) {
super(elementName, associations, null);
_action = (WOAssociation) associations.objectForKey("action");
_formName = (WOAssociation) associations.objectForKey("formName");
if (_formName == null) {
throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'formName' must be set.");
}
_functionName = (WOAssociation) associations.objectForKey("functionName");
if (_functionName == null) {
throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'functionName' must be set.");
}
if (_action != null && _action.isValueConstant()) {
throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'action' is a constant.");
}
_name = (WOAssociation) associations.objectForKey("name");
_disabled = (WOAssociation) associations.objectForKey("disabled");
}