Package org.omnifaces.viewhandler
Class NoAutoGeneratedIdViewHandler.NoAutoGeneratedIdResponseWriter
- java.lang.Object
-
- java.io.Writer
-
- jakarta.faces.context.ResponseWriter
-
- jakarta.faces.context.ResponseWriterWrapper
-
- org.omnifaces.viewhandler.NoAutoGeneratedIdViewHandler.NoAutoGeneratedIdResponseWriter
-
- All Implemented Interfaces:
FacesWrapper<ResponseWriter>
,Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing class:
- NoAutoGeneratedIdViewHandler
public static class NoAutoGeneratedIdViewHandler.NoAutoGeneratedIdResponseWriter extends ResponseWriterWrapper
This response writer throws anIllegalStateException
when an attribute with name "id" is written with a non-null value which starts withUIViewRoot.UNIQUE_ID_PREFIX
or contains an intermediate.- Since:
- 2.0
- Author:
- Arjan Tijms
-
-
Constructor Summary
Constructors Constructor Description NoAutoGeneratedIdResponseWriter(ResponseWriter wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseWriter
cloneWithWriter(Writer writer)
void
startElement(String name, UIComponent component)
void
writeAttribute(String name, Object value, String property)
-
Methods inherited from class jakarta.faces.context.ResponseWriterWrapper
close, endCDATA, endDocument, endElement, flush, getCharacterEncoding, getContentType, getWrapped, startCDATA, startDocument, write, writeComment, writeDoctype, writePreamble, writeText, writeText, writeText, writeURIAttribute
-
-
-
-
Constructor Detail
-
NoAutoGeneratedIdResponseWriter
public NoAutoGeneratedIdResponseWriter(ResponseWriter wrapped)
-
-
Method Detail
-
cloneWithWriter
public ResponseWriter cloneWithWriter(Writer writer)
- Overrides:
cloneWithWriter
in classResponseWriterWrapper
-
startElement
public void startElement(String name, UIComponent component) throws IOException
- Overrides:
startElement
in classResponseWriterWrapper
- Throws:
IOException
-
writeAttribute
public void writeAttribute(String name, Object value, String property) throws IOException
- Overrides:
writeAttribute
in classResponseWriterWrapper
- Throws:
IOException
-
-