public class StringHtmlEncoder extends Object
FacesContexts ResponseWriter to create a html string.| Constructor and Description |
|---|
StringHtmlEncoder() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Encodes complete component by calling
UIComponent.encodeAll(FacesContext). |
static String |
encodeComponentWithSurroundingDiv(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Encodes complete component by calling
UIComponent.encodeAll(FacesContext). |
static String |
encodeComponentWithSurroundingDiv(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String styleClass)
Encodes complete component by calling
UIComponent.encodeAll(FacesContext). |
static String |
encodeComponentWithSurroundingDivIfNecessary(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String styleClass)
Encodes complete component by calling
UIComponent.encodeAll(FacesContext). |
public static String encodeComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
UIComponent.encodeAll(FacesContext).component - componentcontext - FacesContextIOException - thrown by writerpublic static String encodeComponentWithSurroundingDiv(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
UIComponent.encodeAll(FacesContext).component - componentcontext - FacesContextIOException - thrown by writerpublic static String encodeComponentWithSurroundingDiv(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String styleClass) throws IOException
UIComponent.encodeAll(FacesContext).component - componentcontext - FacesContextstyleClass - a div wrapper style classIOException - thrown by writerpublic static String encodeComponentWithSurroundingDivIfNecessary(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String styleClass) throws IOException
UIComponent.encodeAll(FacesContext). Surrounds template with given
styleclass if template does not contains it.component - componentcontext - FacesContextstyleClass - a div wrapper style classIOException - thrown by writerCopyright © 2018. All rights reserved.