public class BaseRenderer extends AbstractRenderer
Renderer implementation for the base tag
from the Struts-Faces Integration Library.
| Constructor and Description |
|---|
BaseRenderer() |
| Modifier and Type | Method and Description |
|---|---|
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. |
decode, encodeBegin, encodeChildren, encodeRecursive, getAsString, isDisabled, isReadOnly, renderAttributes, renderBoolean, renderEnd, renderPassThrough, renderStart, setSubmittedValuepublic void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
Render an HTML base element.
encodeEnd in class AbstractRenderercontext - FacesContext for the request we are processingcomponent - UIComponent to be renderedjava.io.IOException - if an input/output error occurs while renderingjava.lang.NullPointerException - if context
or component is nullprotected 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.
context - FacesContext for the current requestprotected boolean isServletRequest(javax.faces.context.FacesContext context)
Return true if this is a servlet request instance.
context - FacesContext for the current requestprotected 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.
context - FacesContext for the current requestprotected java.lang.String servletUri(javax.faces.context.FacesContext context)
Return an absolute URI for the current page suitable for use in a servlet environment.
context - FacesContext for the current requestprotected java.lang.String uri(javax.faces.context.FacesContext context)
Return the absolute URI to be rendered as the value of the
href attribute.
context - FacesContext for the current requestCopyright © 2000–2024 Apache Software Foundation. All rights reserved.