Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.struts.faces.renderer
Class BaseRenderer  view BaseRenderer download BaseRenderer.java

java.lang.Object
  extended byjavax.faces.render.Renderer
      extended byorg.apache.struts.faces.renderer.AbstractRenderer
          extended byorg.apache.struts.faces.renderer.BaseRenderer

public class BaseRenderer
extends AbstractRenderer

Renderer implementation for the base tag from the Struts-Faces Integration Library.

Version:
$Rev: 54934 $ $Date: 2004-10-16 18:07:50 +0100 (Sat, 16 Oct 2004) $

Field Summary
private static org.apache.commons.logging.Log log
          The Log instance for this class.
 
Constructor Summary
BaseRenderer()
           
 
Method Summary
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render an HTML base element.
protected  boolean isPortletRequest(javax.faces.context.FacesContext context)
          Return true if this is a portlet request instance.
protected  boolean isServletRequest(javax.faces.context.FacesContext context)
          Return true if this is a servlet request instance.
protected  java.lang.String portletUri(javax.faces.context.FacesContext context)
          Return an absolute URI for the current page suitable for use in a portlet environment.
protected  java.lang.String servletUri(javax.faces.context.FacesContext context)
          Return an absolute URI for the current page suitable for use in a servlet environment.
protected  java.lang.String uri(javax.faces.context.FacesContext context)
          Return the absolute URI to be rendered as the value of the href attribute.
 
Methods inherited from class org.apache.struts.faces.renderer.AbstractRenderer
decode, encodeBegin, encodeChildren, encodeRecursive, getAsString, isDisabled, isReadOnly, renderAttributes, renderBoolean, renderEnd, renderPassThrough, renderStart, setSubmittedValue
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log

The Log instance for this class.

Constructor Detail

BaseRenderer

public BaseRenderer()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException

Render an HTML base element.

Overrides:
encodeEnd in class AbstractRenderer

isPortletRequest

protected boolean isPortletRequest(javax.faces.context.FacesContext context)

Return true if this is a portlet request instance. NOTE: Implementation must not require portlet API classes to be present.


isServletRequest

protected boolean isServletRequest(javax.faces.context.FacesContext context)

Return true if this is a servlet request instance.


portletUri

protected java.lang.String portletUri(javax.faces.context.FacesContext context)

Return an absolute URI for the current page suitable for use in a portlet environment. NOTE: Implementation must not require portlet API classes to be present, so use reflection as needed.


servletUri

protected java.lang.String servletUri(javax.faces.context.FacesContext context)

Return an absolute URI for the current page suitable for use in a servlet environment.


uri

protected java.lang.String uri(javax.faces.context.FacesContext context)

Return the absolute URI to be rendered as the value of the href attribute.