org.apache.myfaces.custom.ppr
Class PPRPanelGroupRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGroupRendererBase
              extended by org.apache.myfaces.renderkit.html.ext.HtmlGroupRenderer
                  extended by org.apache.myfaces.custom.ppr.PPRPanelGroupRenderer

public class PPRPanelGroupRenderer
extends org.apache.myfaces.renderkit.html.ext.HtmlGroupRenderer

Author:
Ernst Fastl

Field Summary
static java.lang.String TRANSIENT_MARKER_ATTRIBUTE
           
 
Constructor Summary
PPRPanelGroupRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
          Renders the start of a span element.
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          todo: in 1.2, better use a combo of invokeComponent/RendererUtils.renderChildren() instead
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
          Encodes the end of the span-element and afterwards the inline JavaScript for the client side initialization of the PPRPanelGroup.
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGroupRendererBase
getRendersChildren
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, renderId, shouldRenderId, toUri
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSIENT_MARKER_ATTRIBUTE

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

PPRPanelGroupRenderer

public PPRPanelGroupRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent uiComponent)
                 throws java.io.IOException
Renders the start of a span element. Iterates over all child components and sets transient components to transient=false. Those components are marked with the TRANSIENT_MARKER_ATTRIBUTE so the PPRPhaseListener can reset them to transient in the next non-PPR Request

Overrides:
encodeBegin in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGroupRendererBase
Parameters:
facesContext - the current FacesContext
uiComponent - the PPRPanelGroup to render
Throws:
java.io.IOException

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
todo: in 1.2, better use a combo of invokeComponent/RendererUtils.renderChildren() instead

Overrides:
encodeChildren in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGroupRendererBase
Parameters:
context -
component -
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent uiComponent)
               throws java.io.IOException
Encodes the end of the span-element and afterwards the inline JavaScript for the client side initialization of the PPRPanelGroup.

Overrides:
encodeEnd in class org.apache.myfaces.renderkit.html.ext.HtmlGroupRenderer
Parameters:
facesContext - the current FacesContext
uiComponent - the PPRPanelGroup to render
Throws:
java.io.IOException


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