ajaxFunction.addParameter(options);
// Fill parameters.
for (Iterator it = component.getChildren().iterator(); it.hasNext();) {
UIComponent child = (UIComponent) it.next();
if (child instanceof UIParameter) {
UIParameter parameter = ((UIParameter) child);
String name = parameter.getName();
func.addParameter(name);
// Put parameter name to AJAX.Submit parameter, with default value.
JSReference reference = new JSReference(name);
if (null != parameter.getValue()) {
reference = new JSReference(name + "||"
+ ScriptUtils.toScript(parameters.get(name)));
}
// Replace parameter value to reference.