if (_for != null) {
UICommand applyButton = Components.getOrCreateFacet(context, compositeFilter, HtmlCommandButton.COMPONENT_TYPE, "applyButton", UICommand.class);
if (applyButton.getValue() == null)
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();