org.apache.myfaces.custom.ppr
Class PPRViewRootWrapper

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIViewRoot
              extended by org.apache.myfaces.custom.ppr.PPRViewRootWrapper
All Implemented Interfaces:
javax.faces.component.StateHolder

public class PPRViewRootWrapper
extends javax.faces.component.UIViewRoot

UIViewRoot wrapper which will process only those components configured using PPRSubmit. If this configuration is missing the default process will take place.


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.UIViewRoot
UNIQUE_ID_PREFIX
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
PPRViewRootWrapper(javax.faces.component.UIViewRoot delegateViewRoot)
           
 
Method Summary
 void broadcast(javax.faces.event.FacesEvent event)
           
 java.lang.String createUniqueId()
           
 void decode(javax.faces.context.FacesContext context)
           
 void encodeBegin(javax.faces.context.FacesContext context)
           
 void encodeChildren(javax.faces.context.FacesContext context)
           
 void encodeEnd(javax.faces.context.FacesContext context)
           
 javax.faces.component.UIComponent findComponent(java.lang.String expr)
           
 java.util.Map getAttributes()
           
 int getChildCount()
           
 java.util.List getChildren()
           
 java.lang.String getClientId(javax.faces.context.FacesContext context)
           
 javax.faces.component.UIComponent getFacet(java.lang.String name)
           
 java.util.Map getFacets()
           
 java.util.Iterator getFacetsAndChildren()
           
 java.lang.String getFamily()
           
 java.lang.String getId()
           
 java.util.Locale getLocale()
           
 javax.faces.component.UIComponent getParent()
           
 java.lang.String getRendererType()
           
 java.lang.String getRenderKitId()
           
 boolean getRendersChildren()
           
 javax.faces.el.ValueBinding getValueBinding(java.lang.String name)
           
 java.lang.String getViewId()
           
 boolean isRendered()
           
 boolean isTransient()
           
 void processApplication(javax.faces.context.FacesContext context)
           
 void processDecodes(javax.faces.context.FacesContext context)
           
 void processRestoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object processSaveState(javax.faces.context.FacesContext context)
           
 void processUpdates(javax.faces.context.FacesContext context)
           
 void processValidators(javax.faces.context.FacesContext context)
           
 void queueEvent(javax.faces.event.FacesEvent event)
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setId(java.lang.String id)
           
 void setLocale(java.util.Locale locale)
           
 void setParent(javax.faces.component.UIComponent parent)
           
 void setRendered(boolean rendered)
           
 void setRendererType(java.lang.String rendererType)
           
 void setRenderKitId(java.lang.String renderKitId)
           
 void setTransient(boolean transientFlag)
           
 void setValueBinding(java.lang.String name, javax.faces.el.ValueBinding binding)
           
 void setViewId(java.lang.String viewId)
           
 
Methods inherited from class javax.faces.component.UIViewRoot
addPhaseListener, getAfterPhaseListener, getBeforePhaseListener, removePhaseListener, setAfterPhaseListener, setBeforePhaseListener
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, getFacesContext, getFacesListeners, getFacetCount, getRenderer, invokeOnComponent, removeFacesListener, restoreAttachedState, saveAttachedState
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

PPRViewRootWrapper

public PPRViewRootWrapper(javax.faces.component.UIViewRoot delegateViewRoot)
Method Detail

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.component.UIComponentBase

getChildren

public java.util.List getChildren()
Overrides:
getChildren in class javax.faces.component.UIComponentBase

getChildCount

public int getChildCount()
Overrides:
getChildCount in class javax.faces.component.UIComponentBase

getViewId

public java.lang.String getViewId()
Overrides:
getViewId in class javax.faces.component.UIViewRoot

setViewId

public void setViewId(java.lang.String viewId)
Overrides:
setViewId in class javax.faces.component.UIViewRoot

queueEvent

public void queueEvent(javax.faces.event.FacesEvent event)
Overrides:
queueEvent in class javax.faces.component.UIViewRoot

processDecodes

public void processDecodes(javax.faces.context.FacesContext context)
Overrides:
processDecodes in class javax.faces.component.UIViewRoot

processValidators

public void processValidators(javax.faces.context.FacesContext context)
Overrides:
processValidators in class javax.faces.component.UIViewRoot

processUpdates

public void processUpdates(javax.faces.context.FacesContext context)
Overrides:
processUpdates in class javax.faces.component.UIViewRoot

processApplication

public void processApplication(javax.faces.context.FacesContext context)
Overrides:
processApplication in class javax.faces.component.UIViewRoot

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context)
                 throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.component.UIViewRoot
Throws:
java.io.IOException

createUniqueId

public java.lang.String createUniqueId()
Overrides:
createUniqueId in class javax.faces.component.UIViewRoot

getLocale

public java.util.Locale getLocale()
Overrides:
getLocale in class javax.faces.component.UIViewRoot

setLocale

public void setLocale(java.util.Locale locale)
Overrides:
setLocale in class javax.faces.component.UIViewRoot

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UIViewRoot

setRenderKitId

public void setRenderKitId(java.lang.String renderKitId)
Overrides:
setRenderKitId in class javax.faces.component.UIViewRoot

getRenderKitId

public java.lang.String getRenderKitId()
Overrides:
getRenderKitId in class javax.faces.component.UIViewRoot

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIViewRoot

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIViewRoot

getAttributes

public java.util.Map getAttributes()
Overrides:
getAttributes in class javax.faces.component.UIComponentBase

getValueBinding

public javax.faces.el.ValueBinding getValueBinding(java.lang.String name)
Overrides:
getValueBinding in class javax.faces.component.UIComponentBase

setValueBinding

public void setValueBinding(java.lang.String name,
                            javax.faces.el.ValueBinding binding)
Overrides:
setValueBinding in class javax.faces.component.UIComponentBase

getClientId

public java.lang.String getClientId(javax.faces.context.FacesContext context)
Overrides:
getClientId in class javax.faces.component.UIViewRoot

getId

public java.lang.String getId()
Overrides:
getId in class javax.faces.component.UIViewRoot

setId

public void setId(java.lang.String id)
Overrides:
setId in class javax.faces.component.UIViewRoot

getParent

public javax.faces.component.UIComponent getParent()
Overrides:
getParent in class javax.faces.component.UIComponentBase

setParent

public void setParent(javax.faces.component.UIComponent parent)
Overrides:
setParent in class javax.faces.component.UIComponentBase

findComponent

public javax.faces.component.UIComponent findComponent(java.lang.String expr)
Overrides:
findComponent in class javax.faces.component.UIComponentBase

getFacets

public java.util.Map getFacets()
Overrides:
getFacets in class javax.faces.component.UIComponentBase

getFacet

public javax.faces.component.UIComponent getFacet(java.lang.String name)
Overrides:
getFacet in class javax.faces.component.UIComponentBase

getFacetsAndChildren

public java.util.Iterator getFacetsAndChildren()
Overrides:
getFacetsAndChildren in class javax.faces.component.UIComponentBase

broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException
Overrides:
broadcast in class javax.faces.component.UIComponentBase
Throws:
javax.faces.event.AbortProcessingException

decode

public void decode(javax.faces.context.FacesContext context)
Overrides:
decode in class javax.faces.component.UIComponentBase

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context)
                    throws java.io.IOException
Overrides:
encodeChildren in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.component.UIViewRoot
Throws:
java.io.IOException

processSaveState

public java.lang.Object processSaveState(javax.faces.context.FacesContext context)
Overrides:
processSaveState in class javax.faces.component.UIComponentBase

processRestoreState

public void processRestoreState(javax.faces.context.FacesContext context,
                                java.lang.Object state)
Overrides:
processRestoreState in class javax.faces.component.UIComponentBase

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder
Overrides:
isTransient in class javax.faces.component.UIComponentBase

setTransient

public void setTransient(boolean transientFlag)
Specified by:
setTransient in interface javax.faces.component.StateHolder
Overrides:
setTransient in class javax.faces.component.UIComponentBase

setRendered

public void setRendered(boolean rendered)
Overrides:
setRendered in class javax.faces.component.UIViewRoot

isRendered

public boolean isRendered()
Overrides:
isRendered in class javax.faces.component.UIViewRoot

setRendererType

public void setRendererType(java.lang.String rendererType)
Overrides:
setRendererType in class javax.faces.component.UIComponentBase

getRendererType

public java.lang.String getRendererType()
Overrides:
getRendererType in class javax.faces.component.UIComponentBase


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.