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 String |
portletUri(javax.faces.context.FacesContext context)
Return an absolute URI for the current page suitable for use
in a portlet environment.
|
protected String |
servletUri(javax.faces.context.FacesContext context)
Return an absolute URI for the current page suitable for use
in a servlet environment.
|
protected 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, setSubmittedValue
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
Render an HTML base
element.
encodeEnd
in class AbstractRenderer
context
- FacesContext for the request we are processingcomponent
- UIComponent to be renderedIOException
- if an input/output error occurs while renderingNullPointerException
- 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 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 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 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–2017 Apache Software Foundation. All rights reserved.