public class IdResponseWriter
extends javax.faces.context.ResponseWriterWrapper
ResponseWriter
that ensures the "id" attribute is always written to a particular
element. There are two general use cases for this class: 1. Ensure that the id is always rendered for a specific
element. 2. Render a different id than the delegating renderer would normally render.Constructor and Description |
---|
IdResponseWriter(javax.faces.context.ResponseWriter responseWriter,
String idElement,
String idValue) |
Modifier and Type | Method and Description |
---|---|
void |
endElement(String name) |
javax.faces.context.ResponseWriter |
getWrapped() |
void |
startElement(String name,
javax.faces.component.UIComponent component) |
void |
writeAttribute(String name,
Object value,
String property) |
public void endElement(String name) throws IOException
endElement
in class javax.faces.context.ResponseWriterWrapper
IOException
public javax.faces.context.ResponseWriter getWrapped()
getWrapped
in interface javax.faces.FacesWrapper<javax.faces.context.ResponseWriter>
getWrapped
in class javax.faces.context.ResponseWriterWrapper
public void startElement(String name, javax.faces.component.UIComponent component) throws IOException
startElement
in class javax.faces.context.ResponseWriterWrapper
IOException
public void writeAttribute(String name, Object value, String property) throws IOException
writeAttribute
in class javax.faces.context.ResponseWriterWrapper
IOException
Copyright © 2018 Liferay, Inc.. All rights reserved.