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

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

public class PartialViewContextLiferayImpl
extends javax.faces.context.PartialViewContextWrapper

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

Author:
Neil Griffin

Nested Class Summary
protected  class PartialViewContextLiferayImpl.PartialResponseWriterLiferayImpl
          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
PartialViewContextLiferayImpl(javax.faces.context.PartialViewContext partialViewContext, javax.faces.context.FacesContext facesContext)
           
 
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

PartialViewContextLiferayImpl

public PartialViewContextLiferayImpl(javax.faces.context.PartialViewContext partialViewContext,
                                     javax.faces.context.FacesContext facesContext)
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.