ajaxOptionsArray.addObject(new AjaxOption("rated", AjaxOption.BOOLEAN));
ajaxOptionsArray.addObject(new AjaxOption("reverse", AjaxOption.BOOLEAN));
ajaxOptionsArray.addObject(new AjaxOption("afterChange", AjaxOption.FUNCTION_1));
// updateParameterName is renamed to formValueName to be more WO like
ajaxOptionsArray.addObject(new AjaxConstantOption("updateParameterName", "formValueName", formValueName(context), AjaxOption.STRING));
// These parameters are mutually exclusive at present, but dataUpdateUrl could be used with an input if there is a reason for it.
// I can't think of one right now
if ( ! actAsInput(context)) {
ajaxOptionsArray.addObject(new AjaxConstantOption("dataUpdateUrl", AjaxUtils.ajaxComponentActionUrl(context), AjaxOption.STRING));
ajaxOptionsArray.addObject(new AjaxOption("updateOptions", AjaxOption.DICTIONARY));
}
else {
ajaxOptionsArray.addObject(new AjaxConstantOption("input", id(context) + "_input", AjaxOption.STRING));
}
return AjaxOption.createAjaxOptionsDictionary(ajaxOptionsArray, context.component(), associations());
}