org.omnifaces.renderer
Class InlineScriptRenderer
java.lang.Object
javax.faces.render.Renderer
org.omnifaces.renderer.InlineResourceRenderer
org.omnifaces.renderer.InlineScriptRenderer
public class InlineScriptRenderer
- extends InlineResourceRenderer
This renderer enables rendering a JS resource inline.
This is internally only used by CombinedResourceHandler
- Since:
- 1.2
- Author:
- Bauke Scholtz
- See Also:
CombinedResourceHandler
Field Summary |
static java.lang.String |
RENDERER_TYPE
The standard renderer type. |
Method Summary |
void |
endElement(javax.faces.context.ResponseWriter writer)
End the element. |
void |
startElement(javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component)
Start the element. |
void |
writeResource(java.io.Reader reader,
javax.faces.context.ResponseWriter writer)
Write the resource inline. |
Methods inherited from class javax.faces.render.Renderer |
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RENDERER_TYPE
public static final java.lang.String RENDERER_TYPE
- The standard renderer type.
- See Also:
- Constant Field Values
InlineScriptRenderer
public InlineScriptRenderer()
startElement
public void startElement(javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Description copied from class:
InlineResourceRenderer
- Start the element.
- Specified by:
startElement
in class InlineResourceRenderer
- Parameters:
writer
- The response writer.component
- The UIComponent
to which this element corresponds.
- Throws:
java.io.IOException
- When an I/O error occurs.
writeResource
public void writeResource(java.io.Reader reader,
javax.faces.context.ResponseWriter writer)
throws java.io.IOException
- Description copied from class:
InlineResourceRenderer
- Write the resource inline.
- Specified by:
writeResource
in class InlineResourceRenderer
- Parameters:
reader
- The reader providing the resource content.writer
- The response writer where the resource content has to be written to.
- Throws:
java.io.IOException
- When an I/O error occurs.
endElement
public void endElement(javax.faces.context.ResponseWriter writer)
throws java.io.IOException
- Description copied from class:
InlineResourceRenderer
- End the element.
- Specified by:
endElement
in class InlineResourceRenderer
- Parameters:
writer
- The response writer.
- Throws:
java.io.IOException
- When an I/O error occurs.