Modifier and Type | Field and Description |
---|---|
static String |
RENDERER_TYPE_CSS
Renderer type of standard JSF stylesheet component resource.
|
static String |
RENDERER_TYPE_JS
Renderer type of standard JSF script component resource.
|
Modifier and Type | Method and Description |
---|---|
static void |
writeAttribute(ResponseWriter writer,
String html,
Object value)
Write given attribute value, if it's not empty, as given HTML attribute name.
|
static void |
writeAttribute(ResponseWriter writer,
String html,
Object value,
String property)
Write given attribute value, if it's not empty, as given HTML attribute name associated with given component
property name.
|
static void |
writeAttribute(ResponseWriter writer,
UIComponent component,
String name)
Write component attribute of the given name, if it's not empty.
|
static void |
writeAttribute(ResponseWriter writer,
UIComponent component,
String name,
String html)
Write component attribute of the given name, if it's not empty, as given HTML attribute name.
|
static void |
writeAttribute(ResponseWriter writer,
UIComponent component,
String name,
String html,
String property)
Write component attribute of the given name, if it's not empty, as given HTML attribute name associated with
given component property name.
|
static void |
writeAttributes(ResponseWriter writer,
UIComponent component,
Map<String,String> names)
Write component attributes of the given property-HTML mapping of names, if it's not empty.
|
static void |
writeAttributes(ResponseWriter writer,
UIComponent component,
String... names)
Write component attributes of the given names, if it's not empty.
|
static void |
writeIdAttributeIfNecessary(ResponseWriter writer,
UIComponent component)
Write ID of component if necessary.
|
static void |
writeText(ResponseWriter writer,
UIComponent component,
String text,
boolean escape)
Write the given text either HTML-escaped or unescaped.
|
public static final String RENDERER_TYPE_CSS
public static final String RENDERER_TYPE_JS
public static void writeText(ResponseWriter writer, UIComponent component, String text, boolean escape) throws IOException
writer
- The involved response writer.component
- The associated UI component, usually the parent component.text
- The text to be written.escape
- Whether to HTML-escape the given text or not.IOException
- When an I/O error occurs.public static void writeAttribute(ResponseWriter writer, UIComponent component, String name) throws IOException
writer
- The involved response writer.component
- The associated UI component, usually the parent component.name
- The component attribute name whose value should be written.IOException
- When an I/O error occurs.ResponseWriter.writeAttribute(String, Object, String)
public static void writeAttribute(ResponseWriter writer, UIComponent component, String name, String html) throws IOException
writer
- The involved response writer.component
- The associated UI component, usually the parent component.name
- The component attribute name whose value should be written.html
- The HTML attribute name to be written.IOException
- When an I/O error occurs.ResponseWriter.writeAttribute(String, Object, String)
public static void writeAttribute(ResponseWriter writer, UIComponent component, String name, String html, String property) throws IOException
writer
- The involved response writer.component
- The associated UI component, usually the parent component.name
- The component attribute name whose value should be written.html
- The HTML attribute name to be written.property
- The associated component property name.IOException
- When an I/O error occurs.ResponseWriter.writeAttribute(String, Object, String)
public static void writeAttribute(ResponseWriter writer, String html, Object value) throws IOException
writer
- The involved response writer.html
- The HTML attribute name to be written.value
- The HTML attribute value to be written.IOException
- When an I/O error occurs.ResponseWriter.writeAttribute(String, Object, String)
public static void writeAttribute(ResponseWriter writer, String html, Object value, String property) throws IOException
writer
- The involved response writer.html
- The HTML attribute name to be written.value
- The HTML attribute value to be written.property
- The associated component property name.IOException
- When an I/O error occurs.ResponseWriter.writeAttribute(String, Object, String)
public static void writeAttributes(ResponseWriter writer, UIComponent component, String... names) throws IOException
writer
- The involved response writer.component
- The associated UI component, usually the parent component.names
- The names of the attributes to be written.IOException
- When an I/O error occurs.ResponseWriter.writeAttribute(String, Object, String)
public static void writeAttributes(ResponseWriter writer, UIComponent component, Map<String,String> names) throws IOException
writer
- The involved response writer.component
- The associated UI component, usually the parent component.names
- Mapping of component property-HTML attribute names of the attributes to be written.IOException
- When an I/O error occurs.ResponseWriter.writeAttribute(String, Object, String)
public static void writeIdAttributeIfNecessary(ResponseWriter writer, UIComponent component) throws IOException
writer
- The involved response writer.component
- The associated UI component.IOException
- When an I/O error occurs.ResponseWriter.writeAttribute(String, Object, String)
Copyright © 2012–2018 OmniFaces. All rights reserved.