com.liferay.faces.bridge.renderkit.bridge
Class ResponseWriterBridgeCompat_2_0_Impl
java.lang.Object
java.io.Writer
javax.faces.context.ResponseWriter
javax.faces.context.ResponseWriterWrapper
com.liferay.faces.bridge.renderkit.bridge.ResponseWriterBridgeCompat_2_0_Impl
- All Implemented Interfaces:
- Closeable, Flushable, Appendable, javax.faces.FacesWrapper<javax.faces.context.ResponseWriter>
- Direct Known Subclasses:
- ResponseWriterBridgeCompat_2_2_Impl
public abstract class ResponseWriterBridgeCompat_2_0_Impl
- extends javax.faces.context.ResponseWriterWrapper
- Author:
- Neil Griffin
|
Method Summary |
void |
write(char[] cbuf,
int off,
int len)
The main purpose of this method is to solve the jsf.js limitation #1 as described in the class header
comments. |
protected void |
writeViewStateHiddenField()
|
| Methods inherited from class javax.faces.context.ResponseWriterWrapper |
cloneWithWriter, close, endCDATA, endDocument, endElement, flush, getCharacterEncoding, getContentType, getWrapped, startCDATA, startDocument, startElement, writeAttribute, writeComment, writeText, writeText, writeText, writeURIAttribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTRIBUTE_AUTOCOMPLETE
protected static final String ATTRIBUTE_AUTOCOMPLETE
- See Also:
- Constant Field Values
ATTRIBUTE_ID
protected static final String ATTRIBUTE_ID
- See Also:
- Constant Field Values
ATTRIBUTE_NAME
protected static final String ATTRIBUTE_NAME
- See Also:
- Constant Field Values
ATTRIBUTE_TYPE
protected static final String ATTRIBUTE_TYPE
- See Also:
- Constant Field Values
ATTRIBUTE_VALUE
protected static final String ATTRIBUTE_VALUE
- See Also:
- Constant Field Values
DOCTYPE_MARKER
protected static final String DOCTYPE_MARKER
- See Also:
- Constant Field Values
ELEMENT_INPUT
protected static final String ELEMENT_INPUT
- See Also:
- Constant Field Values
TYPE_HIDDEN
protected static final String TYPE_HIDDEN
- See Also:
- Constant Field Values
VALUE_OFF
protected static final String VALUE_OFF
- See Also:
- Constant Field Values
VIEW_STATE_MARKER
protected static final String VIEW_STATE_MARKER
- See Also:
- Constant Field Values
XML_MARKER
protected static final String XML_MARKER
- See Also:
- Constant Field Values
namespacedParameters
protected boolean namespacedParameters
ResponseWriterBridgeCompat_2_0_Impl
public ResponseWriterBridgeCompat_2_0_Impl(javax.faces.context.ResponseWriter wrappedResponseWriter)
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
The main purpose of this method is to solve the jsf.js limitation #1 as described in the class header
comments.
The Mojarra JSF implementation has a vendor-specific com.sun.faces.facelets.compiler.UIInstructions class that
will render the following markers:
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This method will ensure that such markers are not rendered to the response, as they should not be rendered as
part of a portlet, since portlets are simply HTML fragment that are aggregated together into a single HTML
document by the portlet container.
- Overrides:
write in class javax.faces.context.ResponseWriterWrapper
- Throws:
IOException
writeViewStateHiddenField
protected void writeViewStateHiddenField()
throws IOException
- Throws:
IOException
Copyright © 2014 Liferay, Inc.. All Rights Reserved.