com.liferay.faces.bridge.renderkit.html_basic
Class BodyRendererBridgeImpl
java.lang.Object
javax.faces.render.Renderer
com.liferay.faces.bridge.renderkit.bridge.BridgeRenderer
com.liferay.faces.bridge.renderkit.html_basic.BodyRendererBridgeImpl
public class BodyRendererBridgeImpl
- extends BridgeRenderer
This class is a JSF renderer that is designed for use with the h:body component tag. Portlets are forbidden from
rendering the <body> and </body> elements, which is what is done by the JSF implementation's version of
this renderer. This class will render <div> and </div> elements instead.
- Author:
- Neil Griffin
|
Method Summary |
void |
encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
It is forbidden for a portlet to render the &<body&> element, so instead, render a
&<div&>element. |
void |
encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
|
| Methods inherited from class javax.faces.render.Renderer |
convertClientId, decode, encodeChildren, getConvertedValue, getRendersChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BodyRendererBridgeImpl
public BodyRendererBridgeImpl()
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws IOException
- It is forbidden for a portlet to render the &<body&> element, so instead, render a
&<div&>element.
- Overrides:
encodeBegin in class javax.faces.render.Renderer
- Throws:
IOException- See Also:
Renderer.encodeBegin(FacesContext, UIComponent)
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws IOException
- Overrides:
encodeEnd in class javax.faces.render.Renderer
- Throws:
IOException
Copyright © 2014 Liferay, Inc.. All Rights Reserved.