com.liferay.faces.bridge.context.internal
Class PartialViewContextBridgeImpl

java.lang.Object
  extended by javax.faces.context.PartialViewContext
      extended by javax.faces.context.PartialViewContextWrapper
          extended by com.liferay.faces.bridge.context.internal.PartialViewContextBridgeImpl
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.context.PartialViewContext>

public class PartialViewContextBridgeImpl
extends javax.faces.context.PartialViewContextWrapper

This class is a wrapper around the PartialViewContext. Its purpose is to wrap the PartialResponseWriter with a PartialResponseWriterAlloyImpl which writes Scripts from FacesRequestContext to the <eval> section of the partial response.

Author:
Neil Griffin

Nested Class Summary
protected  class PartialViewContextBridgeImpl.PartialResponseWriterBridgeImpl
          This class serves as a wrapper around the PartialResponseWriter that will encode JavaScript within an ... section just before the end of the partial-response document.
 
Field Summary
 
Fields inherited from class javax.faces.context.PartialViewContext
ALL_PARTIAL_PHASE_CLIENT_IDS, PARTIAL_EXECUTE_PARAM_NAME, PARTIAL_RENDER_PARAM_NAME
 
Constructor Summary
PartialViewContextBridgeImpl(javax.faces.context.PartialViewContext partialViewContext)
           
 
Method Summary
 javax.faces.context.PartialResponseWriter getPartialResponseWriter()
           
 javax.faces.context.PartialViewContext getWrapped()
           
 void setPartialRequest(boolean isPartialRequest)
          This method is missing from the PartialViewContextWrapper class so it must be implemented here.
 
Methods inherited from class javax.faces.context.PartialViewContextWrapper
getExecuteIds, getRenderIds, isAjaxRequest, isExecuteAll, isPartialRequest, isRenderAll, processPartial, release, setRenderAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartialViewContextBridgeImpl

public PartialViewContextBridgeImpl(javax.faces.context.PartialViewContext partialViewContext)
Method Detail

setPartialRequest

public void setPartialRequest(boolean isPartialRequest)
This method is missing from the PartialViewContextWrapper class so it must be implemented here.

Specified by:
setPartialRequest in class javax.faces.context.PartialViewContext

getPartialResponseWriter

public javax.faces.context.PartialResponseWriter getPartialResponseWriter()
Overrides:
getPartialResponseWriter in class javax.faces.context.PartialViewContextWrapper

getWrapped

public javax.faces.context.PartialViewContext getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.PartialViewContext>
Overrides:
getWrapped in class javax.faces.context.PartialViewContextWrapper


Copyright © 2015 Liferay, Inc.. All rights reserved.