protected void decodeSingle(FacesContext context, AutoComplete ac) { Map<String, String> params = context.getExternalContext().getRequestParameterMap(); String clientId = ac.getClientId(context); String valueParam = (ac.getVar() != null) ? clientId + "_hinput" : clientId + "_input"; String submittedValue = params.get(valueParam); if (submittedValue != null) { ac.setSubmittedValue(submittedValue); } }
protected void encodeInput(FacesContext context, AutoComplete ac, String clientId) throws IOException { ResponseWriter writer = context.getResponseWriter(); boolean disabled = ac.isDisabled(); String var = ac.getVar(); String itemLabel; String defaultStyleClass = ac.isDropdown() ? AutoComplete.INPUT_WITH_DROPDOWN_CLASS : AutoComplete.INPUT_CLASS;
protected void encodeSuggestionsAsList(FacesContext context, AutoComplete ac, List items, Converter converter) throws IOException { ResponseWriter writer = context.getResponseWriter(); String var = ac.getVar(); Map<String, Object> requestMap = context.getExternalContext().getRequestMap(); boolean pojo = var != null;
protected void encodeSingleMarkup(FacesContext context, AutoComplete ac) throws IOException { ResponseWriter writer = context.getResponseWriter(); String clientId = ac.getClientId(context); String styleClass = ac.getStyleClass(); styleClass = styleClass == null ? AutoComplete.STYLE_CLASS : AutoComplete.STYLE_CLASS + " " + styleClass; writer.startElement("span", null); writer.writeAttribute("id", clientId, null); writer.writeAttribute("class", styleClass, null); if (ac.getStyle() != null) { writer.writeAttribute("style", ac.getStyle(), null); } encodeInput(context, ac, clientId); if (ac.getVar() != null) { encodeHiddenInput(context, ac, clientId); } if (ac.isDropdown()) { encodeDropDown(context, ac); } if (!ac.isDynamic()) { encodePanel(context, ac); } writer.endElement("span"); }
protected void encodeSuggestionsAsTable(FacesContext context, AutoComplete ac, List items, Converter converter) throws IOException { ResponseWriter writer = context.getResponseWriter(); String var = ac.getVar(); Map<String, Object> requestMap = context.getExternalContext().getRequestMap(); boolean pojo = var != null;
String var = ac.getVar(); boolean pojo = var != null;
protected void decodeSingle(FacesContext context, AutoComplete ac) { Map<String, String> params = context.getExternalContext().getRequestParameterMap(); String clientId = ac.getClientId(context); String valueParam = (ac.getVar() != null) ? clientId + "_hinput" : clientId + "_input"; String submittedValue = params.get(valueParam); if (submittedValue != null) { ac.setSubmittedValue(submittedValue); } }
@Override protected void encodeSuggestions(FacesContext context, AutoComplete ac, List items) throws IOException { ResponseWriter writer = context.getResponseWriter(); String var = ac.getVar(); boolean pojo = (var != null); Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
protected void encodeInput(FacesContext context, AutoComplete ac, String clientId) throws IOException { ResponseWriter writer = context.getResponseWriter(); boolean disabled = ac.isDisabled(); String var = ac.getVar(); String itemLabel; String defaultStyleClass = ac.isDropdown() ? AutoComplete.INPUT_WITH_DROPDOWN_CLASS : AutoComplete.INPUT_CLASS;
protected void encodeSuggestionsAsList(FacesContext context, AutoComplete ac, List items, Converter converter) throws IOException { ResponseWriter writer = context.getResponseWriter(); String var = ac.getVar(); Map<String, Object> requestMap = context.getExternalContext().getRequestMap(); boolean pojo = var != null;
protected void encodeSingleMarkup(FacesContext context, AutoComplete ac) throws IOException { ResponseWriter writer = context.getResponseWriter(); String clientId = ac.getClientId(context); String styleClass = ac.getStyleClass(); styleClass = styleClass == null ? AutoComplete.STYLE_CLASS : AutoComplete.STYLE_CLASS + " " + styleClass; writer.startElement("span", null); writer.writeAttribute("id", clientId, null); writer.writeAttribute("class", styleClass, null); if (ac.getStyle() != null) { writer.writeAttribute("style", ac.getStyle(), null); } encodeInput(context, ac, clientId); if (ac.getVar() != null) { encodeHiddenInput(context, ac, clientId); } if (ac.isDropdown()) { encodeDropDown(context, ac); } if (!ac.isDynamic()) { encodePanel(context, ac); } writer.endElement("span"); }
String var = ac.getVar(); boolean pojo = var != null;
protected void encodeSuggestionsAsTable(FacesContext context, AutoComplete ac, List items, Converter converter) throws IOException { ResponseWriter writer = context.getResponseWriter(); String var = ac.getVar(); Map<String, Object> requestMap = context.getExternalContext().getRequestMap(); boolean pojo = var != null;