protected void renderPassThruAttributes(FacesContext context, UIComponent component, String[] attrs) throws IOException { //pre-defined attributes if (attrs != null && attrs.length > 0) { ResponseWriter writer = context.getResponseWriter(); for (String attribute : attrs) { Object value = component.getAttributes().get(attribute); if (shouldRenderAttribute(value)) { writer.writeAttribute(attribute, value.toString(), attribute); } } } renderDynamicPassThruAttributes(context, component); }
protected void renderPassThruAttributes(FacesContext context, UIComponent component, String[] attrs, String[] ignoredAttrs) throws IOException { ResponseWriter writer = context.getResponseWriter(); //pre-defined attributes for (String attribute : attrs) { if (isIgnoredAttribute(attribute, ignoredAttrs)) { continue; } Object value = component.getAttributes().get(attribute); if (shouldRenderAttribute(value)) { writer.writeAttribute(attribute, value.toString(), attribute); } } //dynamic attributes if (PrimeApplicationContext.getCurrentInstance(context).getEnvironment().isAtLeastJsf22()) { Jsf22Helper.renderPassThroughAttributes(context, component); } }
protected void renderPassThruAttributes(FacesContext context, UIComponent component, String[] attrs) throws IOException { ResponseWriter writer = context.getResponseWriter(); //pre-defined attributes if (attrs != null && attrs.length > 0) { for (String attribute : attrs) { Object value = component.getAttributes().get(attribute); if (shouldRenderAttribute(value)) { writer.writeAttribute(attribute, value.toString(), attribute); } } } renderDynamicPassThruAttributes(context, component); }
protected void renderPassThruAttributes(FacesContext context, UIComponent component, String[] attrs, String[] ignoredAttrs) throws IOException { ResponseWriter writer = context.getResponseWriter(); //pre-defined attributes for (String attribute : attrs) { if (isIgnoredAttribute(attribute, ignoredAttrs)) { continue; } Object value = component.getAttributes().get(attribute); if (shouldRenderAttribute(value)) { writer.writeAttribute(attribute, value.toString(), attribute); } } //dynamic attributes if (RequestContext.getCurrentInstance(context).getApplicationContext().getConfig().isAtLeastJSF22()) { Jsf22Helper.renderPassThroughAttributes(context, component); } }