-
1. Re: Problem with rich:calendar internet explorer7
ilya_shaikovsky Mar 30, 2010 8:03 AM (in response to garriweb)filterValueInput facet is not documented and was not intended for direct usage. That's why It was not tested for full support of rich:* controls inside (there is problems with them as them not have focus() defined).
-
2. Re: Problem with rich:calendar internet explorer7
garriweb Mar 30, 2010 10:28 AM (in response to ilya_shaikovsky)Thank you,
I figured out a workaround for my problem overwriting the method addInplaceInput(FacesContext context, UIComponent column) in AbstractExtendedTableRenderer.java in my project so it sets the focus to InputDate in case it is a rich:calendar:
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)));
if(filterValueInput.getRendererType().equalsIgnoreCase("org.richfaces.CalendarRenderer")){
buffer = buffer.replace(filterValueInput.getClientId(context), filterValueInput.getClientId(context)+"InputDate");
}
filterValueInput.getAttributes().put(filterEvent, buffer);
filterValueInput.setValue(column.getAttributes().get("filterValue"));
getUtils().encodeBeginFormIfNessesary(context, column);
renderChild(context, filterValueInput);
getUtils().encodeEndFormIfNessesary(context, column);
}
-
3. Re: Problem with rich:calendar internet explorer7
m.a.g Apr 4, 2010 5:05 AM (in response to ilya_shaikovsky)We are wating for "filterValueInput" feature - https://jira.jboss.org/jira/browse/RF-7582