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,
String... names)
Write component attribute of the given names, if it's not empty.
|
static void |
writeText(ResponseWriter writer,
UIComponent component,
String text,
boolean escape)
Write the given text either HTML-escaped or unescaped.
|
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.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.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)