com.liferay.faces.bridge.renderkit.bridge
Class ResponseWriterBridgeCompat_2_0_Impl

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by javax.faces.context.ResponseWriterWrapper
              extended by 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

Field Summary
protected static String ATTRIBUTE_AUTOCOMPLETE
           
protected static String ATTRIBUTE_ID
           
protected static String ATTRIBUTE_NAME
           
protected static String ATTRIBUTE_TYPE
           
protected static String ATTRIBUTE_VALUE
           
protected static String DOCTYPE_MARKER
           
protected static String ELEMENT_INPUT
           
protected  boolean namespacedParameters
           
protected static String TYPE_HIDDEN
           
protected static String VALUE_OFF
           
protected static String VIEW_STATE_MARKER
           
protected static String XML_MARKER
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
ResponseWriterBridgeCompat_2_0_Impl(javax.faces.context.ResponseWriter wrappedResponseWriter)
           
 
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.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ResponseWriterBridgeCompat_2_0_Impl

public ResponseWriterBridgeCompat_2_0_Impl(javax.faces.context.ResponseWriter wrappedResponseWriter)
Method Detail

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:

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.