public void render(FacesContext context, UIComponent component) throws IOException { renderPassThroughAttributes(context, component, this); }
public void render(FacesContext context, UIComponent component) throws IOException { renderPassThroughAttributes(context, component, this); }
public void render(FacesContext context, UIComponent component) throws IOException { renderPassThroughAttributes(context, component, this); }
public static void renderPassThroughAttributes(FacesContext context, UIComponent component, Map<String, ComponentAttribute> knownAttributesMap) throws IOException { Collection<ComponentAttribute> attributes = knownAttributesMap.values(); renderPassThroughAttributes(context, component, attributes); }
public static void renderPassThroughAttributes(FacesContext context, UIComponent component, Map<String, ComponentAttribute> knownAttributesMap) throws IOException { Collection<ComponentAttribute> attributes = knownAttributesMap.values(); renderPassThroughAttributes(context, component, attributes); }
public static void renderPassThroughAttributes(FacesContext context, UIComponent component, Map<String, ComponentAttribute> knownAttributesMap) throws IOException { Collection<ComponentAttribute> attributes = knownAttributesMap.values(); renderPassThroughAttributes(context, component, attributes); }
protected void doEncodeItemBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException { writer.startElement(HtmlConstants.DIV_ELEM, component); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context), "clientId"); writer.writeAttribute(CLASS_ATTRIBUTE, getStyleClass(component), null); String style = getStyle(component); if (style != null && style.length() > 0) { writer.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, style, null); } renderPassThroughAttributes(context, component, getPassThroughAttributes()); }
protected void doEncodeItemBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException { writer.startElement(HtmlConstants.DIV_ELEM, component); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context), "clientId"); writer.writeAttribute(CLASS_ATTRIBUTE, getStyleClass(component), null); String style = getStyle(component); if (style != null && style.length() > 0) { writer.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, style, null); } renderPassThroughAttributes(context, component, getPassThroughAttributes()); }
protected void doEncodeItemBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException { writer.startElement(HtmlConstants.DIV_ELEM, component); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context), "clientId"); writer.writeAttribute(CLASS_ATTRIBUTE, getStyleClass(component), null); String style = getStyle(component); if (style != null && style.length() > 0) { writer.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, style, null); } renderPassThroughAttributes(context, component, getPassThroughAttributes()); }
renderPassThroughAttributes(facesContext, component, PASS_THROUGH_ATTRIBUTES39);
renderPassThroughAttributes(facesContext, component, PASS_THROUGH_ATTRIBUTES13);
renderPassThroughAttributes(facesContext, component, PASS_THROUGH_ATTRIBUTES4);
renderPassThroughAttributes(facesContext, component, PASS_THROUGH_ATTRIBUTES28);
renderPassThroughAttributes(facesContext, component, PASS_THROUGH_ATTRIBUTES44);
private void encodeHeader(FacesContext context, AbstractAccordionItem component) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement(DIV_ELEM, component); String stateCssClass = "rf-ac-itm-hdr-" + (component.isDisabled() ? "dis" : (component.isActive() ? "act" : "inact")); writer.writeAttribute(CLASS_ATTRIBUTE, concatClasses("rf-ac-itm-hdr", stateCssClass, attributeAsString(component, "headerClass")), null); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context) + ":header", null); renderPassThroughAttributes(context, component, HEADER_ATTRIBUTES); headerRenderer.encodeHeader(writer, context, component); writer.endElement(DIV_ELEM); }
private void encodeHeader(FacesContext context, AbstractAccordionItem component) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement(DIV_ELEM, component); String stateCssClass = "rf-ac-itm-hdr-" + (component.isDisabled() ? "dis" : (component.isActive() ? "act" : "inact")); writer.writeAttribute(CLASS_ATTRIBUTE, concatClasses("rf-ac-itm-hdr", stateCssClass, attributeAsString(component, "headerClass")), null); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context) + ":header", null); renderPassThroughAttributes(context, component, HEADER_ATTRIBUTES); headerRenderer.encodeHeader(writer, context, component); writer.endElement(DIV_ELEM); }
private void encodeHeader(FacesContext context, AbstractAccordionItem component) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement(DIV_ELEM, component); String stateCssClass = "rf-ac-itm-hdr-" + (component.isDisabled() ? "dis" : (component.isActive() ? "act" : "inact")); writer.writeAttribute(CLASS_ATTRIBUTE, concatClasses("rf-ac-itm-hdr", stateCssClass, attributeAsString(component, "headerClass")), null); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context) + ":header", null); renderPassThroughAttributes(context, component, HEADER_ATTRIBUTES); headerRenderer.encodeHeader(writer, context, component); writer.endElement(DIV_ELEM); }
@Override protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException { AbstractTooltip tooltip = (AbstractTooltip) component; writer.startElement(getMarkupElement(tooltip), component); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context), "clientId"); writer.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, "display: none;", null); writer.startElement(getMarkupElement(tooltip), component); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context) + ":wrp", null); writer.writeAttribute(CLASS_ATTRIBUTE, getStyleClass(component), null); int zindex = tooltip.getZindex(); String style = concatStyles("z-index:" + zindex, getStyle(component)); if (style != null && style.trim().length() > 0) { writer.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, style, null); } renderPassThroughAttributes(context, component, getPassThroughAttributes()); writer.startElement(getMarkupElement(tooltip), component); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context) + ":cntr", null); writer.writeAttribute(CLASS_ATTRIBUTE, "rf-tt-cntr", null); if (tooltip.getMode() == TooltipMode.ajax) { encodeLoading(writer, context, tooltip); } encodeContentBegin(writer, context, tooltip); }
private void encodeTabHeader(FacesContext context, AbstractTab tab, ResponseWriter writer, AbstractTogglePanelTitledItem.HeaderStates state) throws IOException { String headerStateClass = "rf-tab-hdr-" + state.abbreviation(); String headerPositionClass = "rf-tab-hdr-" + positionAbbreviation(tab); writer.startElement(TD_ELEM, tab); writer.writeAttribute(ID_ATTRIBUTE, tab.getClientId(context) + ":header", null); renderPassThroughAttributes(context, tab, HEADER_ATTRIBUTES); writer.writeAttribute( CLASS_ATTRIBUTE, concatClasses("rf-tab-hdr", headerStateClass, headerPositionClass, attributeAsString(tab, "headerClass"), attributeAsString(tab, state.headerClass())), null); writer.writeAttribute(STYLE_ATTRIBUTE, attributeAsString(tab, "headerStyle"), null); writer.writeAttribute("data-tabname", tab.getName(), null); writer.startElement(SPAN_ELEM, tab); writer.writeAttribute(CLASS_ATTRIBUTE, "rf-tab-lbl", null); UIComponent headerFacet = tab.getHeaderFacet(state); if (headerFacet != null && headerFacet.isRendered()) { headerFacet.encodeAll(context); } else { Object headerText = tab.getAttributes().get("header"); if (headerText != null && !headerText.equals("")) { writer.writeText(headerText, null); } } writer.endElement(SPAN_ELEM); writer.endElement(TD_ELEM); }
@Override protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException { AbstractTooltip tooltip = (AbstractTooltip) component; writer.startElement(getMarkupElement(tooltip), component); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context), "clientId"); writer.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, "display: none;", null); writer.startElement(getMarkupElement(tooltip), component); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context) + ":wrp", null); writer.writeAttribute(CLASS_ATTRIBUTE, getStyleClass(component), null); int zindex = tooltip.getZindex(); if (zindex == Integer.MIN_VALUE) { zindex = DEFAULT_ZINDEX_VALUE; } String style = concatStyles("z-index:" + zindex, getStyle(component)); if (style != null && style.trim().length() > 0) { writer.writeAttribute(HtmlConstants.STYLE_ATTRIBUTE, style, null); } renderPassThroughAttributes(context, component, getPassThroughAttributes()); writer.startElement(getMarkupElement(tooltip), component); writer.writeAttribute(ID_ATTRIBUTE, component.getClientId(context) + ":cntr", null); writer.writeAttribute(CLASS_ATTRIBUTE, "rf-tt-cntr", null); if (tooltip.getMode() == TooltipMode.ajax) { encodeLoading(writer, context, tooltip); } encodeContentBegin(writer, context, tooltip); }