Class ConditionalResponseWriter
- java.lang.Object
- 
- java.io.Writer
- 
- jakarta.faces.context.ResponseWriter
- 
- jakarta.faces.context.ResponseWriterWrapper
- 
- org.omnifaces.component.input.componentidparam.ConditionalResponseWriter
 
 
 
 
- 
- All Implemented Interfaces:
- FacesWrapper<ResponseWriter>,- Closeable,- Flushable,- Appendable,- AutoCloseable
 
 public class ConditionalResponseWriter extends ResponseWriterWrapper ResponseWriter intended to work in conjunction with theComponentIdParamcomponent.This allows rendering to proceed to the output if the current component matches any of the given ids, otherwise simply does not send anything to the output. - Since:
- 1.1
- Author:
- Arjan Tijms
 
- 
- 
Constructor SummaryConstructors Constructor Description ConditionalResponseWriter(ResponseWriter responseWriter, FacesContext facesContext, List<String> componentIds, List<String> clientIds, boolean renderChildren)Construct conditional response writer.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Writerappend(char c)Writerappend(CharSequence csq)Writerappend(CharSequence csq, int start, int end)voidendCDATA()voidendDocument()voidendElement(String name)voidstartCDATA()voidstartDocument()voidstartElement(String name, UIComponent component)voidwrite(char[] cbuf)voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str)voidwrite(String str, int off, int len)voidwriteAttribute(String name, Object value, String property)voidwriteComment(Object comment)voidwriteText(char[] text, int off, int len)voidwriteText(Object text, UIComponent component, String property)voidwriteText(Object text, String property)voidwriteURIAttribute(String name, Object value, String property)- 
Methods inherited from class jakarta.faces.context.ResponseWriterWrappercloneWithWriter, close, flush, getCharacterEncoding, getContentType, getWrapped, writeDoctype, writePreamble
 - 
Methods inherited from class java.io.WriternullWriter
 
- 
 
- 
- 
- 
Constructor Detail- 
ConditionalResponseWriterpublic ConditionalResponseWriter(ResponseWriter responseWriter, FacesContext facesContext, List<String> componentIds, List<String> clientIds, boolean renderChildren) Construct conditional response writer.- Parameters:
- responseWriter- Response writer to be wrapped.
- facesContext- Involved faces context.
- componentIds- Component IDs.
- clientIds- Client IDs.
- renderChildren- Whether to render children.
 
 
- 
 - 
Method Detail- 
endCDATApublic void endCDATA() throws IOException- Overrides:
- endCDATAin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
endElementpublic void endElement(String name) throws IOException - Overrides:
- endElementin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
endDocumentpublic void endDocument() throws IOException- Overrides:
- endDocumentin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
startCDATApublic void startCDATA() throws IOException- Overrides:
- startCDATAin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
startDocumentpublic void startDocument() throws IOException- Overrides:
- startDocumentin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
startElementpublic void startElement(String name, UIComponent component) throws IOException - Overrides:
- startElementin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
writepublic void write(char[] cbuf, int off, int len) throws IOException- Overrides:
- writein class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
writeAttributepublic void writeAttribute(String name, Object value, String property) throws IOException - Overrides:
- writeAttributein class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
writeCommentpublic void writeComment(Object comment) throws IOException - Overrides:
- writeCommentin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
writeTextpublic void writeText(char[] text, int off, int len) throws IOException- Overrides:
- writeTextin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
writeTextpublic void writeText(Object text, String property) throws IOException - Overrides:
- writeTextin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
writeTextpublic void writeText(Object text, UIComponent component, String property) throws IOException - Overrides:
- writeTextin class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
writeURIAttributepublic void writeURIAttribute(String name, Object value, String property) throws IOException - Overrides:
- writeURIAttributein class- ResponseWriterWrapper
- Throws:
- IOException
 
 - 
appendpublic Writer append(char c) throws IOException - Specified by:
- appendin interface- Appendable
- Overrides:
- appendin class- Writer
- Throws:
- IOException
 
 - 
appendpublic Writer append(CharSequence csq) throws IOException - Specified by:
- appendin interface- Appendable
- Overrides:
- appendin class- Writer
- Throws:
- IOException
 
 - 
appendpublic Writer append(CharSequence csq, int start, int end) throws IOException - Specified by:
- appendin interface- Appendable
- Overrides:
- appendin class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(char[] cbuf) throws IOException- Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(int c) throws IOException- Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(String str) throws IOException - Overrides:
- writein class- Writer
- Throws:
- IOException
 
 - 
writepublic void write(String str, int off, int len) throws IOException - Overrides:
- writein class- Writer
- Throws:
- IOException
 
 
- 
 
-