writer.writeAttribute("id", component.getClientId(context), null); writer.startCDATA();
writer.startElement("partial-response", null); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); writer.endElement("partial-response");
@Override public void writeAttribute(String name, Object value, String property) throws IOException { wrapped.writeAttribute(name, value, property); }
public void startExtension(Map<String, String> attributes) throws IOException { Iterator<String> attrNames; startChanges(); startElement ("extension", null); // Write out extension attributes. // TODO: schema mentions "id" attribute; not used? attrNames = attributes.keySet().iterator(); while (attrNames.hasNext()) { String attrName = attrNames.next(); writeAttribute (attrName, attributes.get (attrName), null); } // Leave open; caller will write extension elements. }
public void redirect(String url) throws IOException { startElement ("redirect", null); writeAttribute ("url", url, null); endElement ("redirect"); }
public void updateAttributes(String targetId, Map<String, String> attributes) throws IOException { Iterator<String> attrNames; startChanges(); startElement ("attributes", null); writeAttribute ("id", targetId, null); attrNames = attributes.keySet().iterator(); while (attrNames.hasNext()) { String attrName = attrNames.next(); startElement ("attribute", null); writeAttribute ("name", attrName, null); writeAttribute ("value", attributes.get (attrName), null); endElement ("attribute"); } endElement ("attributes"); }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (isDoubleBufferEnabled()) { _cdataDoubleBufferWriter.writeAttribute(name, value, property); } else { super.writeAttribute(name, value, property); } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (isDoubleBufferEnabled()) { _cdataDoubleBufferWriter.writeAttribute(name, value, property); } else { super.writeAttribute(name, value, property); } }
@Override public void writeAttribute(String name, Object value, String property) throws IOException { if (isDoubleBufferEnabled()) { _cdataDoubleBufferWriter.writeAttribute(name, value, property); } else { super.writeAttribute(name, value, property); } }
public void startUpdate(String targetId) throws IOException { startChanges(); startElement ("update", null); writeAttribute ("id", targetId, null); startCDATA(); // Leave open; caller will write content. }
public void delete(String targetId) throws IOException { startChanges(); startElement ("delete", null); writeAttribute ("id", targetId, null); endElement ("delete"); }
private void startInsertCommon (String type, String targetId) throws IOException { if (insertType != null) { // An insert has already been started; ignore. return; } insertType = type; startChanges(); startElement ("insert", null); startElement (insertType, null); writeAttribute ("id", targetId, null); startCDATA(); // Leave open; caller will write content. } }
writer.startDocument(); writer.writeAttribute("id", viewRoot.getContainerClientId(_facesContext),"id");
writer.writeAttribute("id", component.getClientId(context), null); writer.startCDATA();
writer.startElement("partial-response", null); writer.startElement("redirect", null); writer.writeAttribute("url", url, null); writer.endElement("redirect"); writer.endElement("partial-response");