}
}
}
protected void addInplaceInput(FacesContext context, UIComponent column) throws IOException {
UIInput filterValueInput = (UIInput) column
.getFacet(FILTER_INPUT_FACET_NAME);
if (null == filterValueInput) {
filterValueInput = (UIInput) context.getApplication()
.createComponent(UIInput.COMPONENT_TYPE);
filterValueInput.setId(column.getId() + SORT_FILTER_PARAMETER);
filterValueInput.setImmediate(true);
filterValueInput.getAttributes().put(HTML.STYLE_CLASS_ATTR, "rich-filter-input");
column.getFacets().put(FILTER_INPUT_FACET_NAME, filterValueInput);
filterValueInput.getAttributes().put(HTML.onclick_ATTRIBUTE,
"Event.stop(event);");
}
String filterEvent = (String) column.getAttributes().get("filterEvent");
if (null == filterEvent || "".equals(filterEvent)) {
filterEvent = "onchange";
}
String buffer = buildAjaxFunction(
context,
column,
false,
buildSetFocusFunctionDef(filterValueInput.getClientId(context)));
filterValueInput.getAttributes().put(filterEvent, buffer);
filterValueInput.setValue(column.getAttributes().get("filterValue"));
getUtils().encodeBeginFormIfNessesary(context, column);
renderChild(context, filterValueInput);
getUtils().encodeEndFormIfNessesary(context, column);
}