applyButton.setValue("Apply");
applyButton.getAttributes().put("onclick", new ScriptBuilder().O$(compositeFilter).dot().functionCall("apply").append(";return false;").toString());
applyButton.encodeAll(context);
String ajaxForApplyId = Components.generateIdWithSuffix(compositeFilter, "ajaxForApply");
Ajax ajaxForApply = (Ajax) compositeFilter.findComponent(ajaxForApplyId);
if (ajaxForApply == null) {
ajaxForApply = new Ajax();
ajaxForApply.setId(ajaxForApplyId);
ajaxForApply.setExecute(new ArrayList<String>(Collections.singletonList(":" + compositeFilter.getClientId(context))));
ajaxForApply.setRender(new ArrayList<String>(Collections.singletonList(_for)));
ajaxForApply.setStandalone(true);
compositeFilter.getChildren().add(ajaxForApply);
}
ajaxForApply.encodeAll(context);
}
renderInitScript(context, compositeFilter);