@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (bufferedScript.isBuffering()) { bufferedScript.bufferAttribute(name, value, property); } else { super.writeAttribute(name, value, property); } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if ("id".equals(name)) { if (!writingIdElement) { super.writeAttribute(name, value, property); } } else { super.writeAttribute(name, value, property); } } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (writingForm && "action".equals(name)) { value = nonAjaxPartialActionURL; } super.writeAttribute(name, value, property); }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (writingForm && "action".equals(name)) { value = nonAjaxPartialActionURL; } super.writeAttribute(name, value, property); }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (writingForm && "action".equals(name)) { value = nonAjaxPartialActionURL; } super.writeAttribute(name, value, property); }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (writingForm && "action".equals(name)) { value = nonAjaxPartialActionURL; } super.writeAttribute(name, value, property); }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if ("action".equals(name)) { value = encodedActionURL; } super.writeAttribute(name, value, property); } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { super.writeAttribute(name, value, property); if (!idAttributeWritten && "id".equals(name)) { idAttributeWritten = true; } if (!dataSennaTrackAttributeWritten && ResourceRendererLiferayImpl.DATA_SENNA_TRACK.equals(name)) { dataSennaTrackAttributeWritten = true; } } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (name.equals("class")) { wroteClass = true; if ((parent) && (parentName != null) && (name.equals("class"))) { value = "yui3-menuitem-content " + value; } } super.writeAttribute(name, value, property); }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (writingInput) { inputAttributes.put(name, value); } else if (writingLabel && "class".equals(name)) { cssClass = cssClass + " " + value; } else { super.writeAttribute(name, value, property); } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { // Prevent the JSF runtime writing the "id", "style", and "class" attributes since the // OutputToolTipRenderer.encodeMarkupBegin(FacesContext, UIComponent) method has already written them. if (!"id".equals(name) && !Styleable.STYLE.equals(name) && !Styleable.STYLE_CLASS.equals(name)) { super.writeAttribute(name, value, property); } } }
@Override public void endElement(String name) throws IOException { if ("input".equalsIgnoreCase(name)) { inputElement = false; } if ("label".equalsIgnoreCase(name)) { labelElement = false; super.writeAttribute("title", title, "title"); super.writeAttribute(Styleable.STYLE, "display:none;", null); super.endElement("input"); } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if ("class".equals(name)) { value = styleClass; } if ("onclick".equals(name)) { value = value.toString().replace("this", "document.getElementById('" + clientId + "')"); } if (!"id".equals(name)) { super.writeAttribute(name, value, property); } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if ("disabled".equalsIgnoreCase(name) || "type".equalsIgnoreCase(name) || ("onclick".equalsIgnoreCase(name) && !writeOnclick) || "class".equalsIgnoreCase(name) || ButtonRenderer.ONBLUR.equals(name) || ButtonRenderer.ONFOCUS.equals(name) || "value".equalsIgnoreCase(name) || Styleable.STYLE.equals(name)) { // no-op Because writing of these attributes need to be controlled directly by ButtonRender. } else { super.writeAttribute(name, value, property); } }
@Override public void endElement(String name) throws IOException { if ("input".equals(name)) { if (!wroteId) { super.writeAttribute("id", id, "id"); } } super.endElement(name); }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if ("type".equals(name) && !isFaces_2_2_OrNewer()) { value = "file"; } super.writeAttribute(name, value, property); }
@Override public void writeText(Object text, String property) throws IOException { // Catch cases where no class was written to a piece of menu item content if ((parent) && (parentName != null) && (!wroteClass)) { super.writeAttribute("class", "yui3-menuitem-content", "class"); wroteClass = true; } super.writeText(text, property); } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (isForRenderedComponent()) { super.writeAttribute(name, value, property); } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (isForRenderedComponent()) { super.writeAttribute(name, value, property); } }
@Override public void startElement(String name, UIComponent component) throws IOException { super.startElement(name, component); if ((!writingIdElement) && (idElement != null) && idElement.equals(name)) { writingIdElement = true; super.writeAttribute("id", idValue, "id"); } }