- java.lang.Object
-
- jakarta.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 byCombinedResourceHandler
- Since:
- 1.2
- Author:
- Bauke Scholtz
- See Also:
CombinedResourceHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
RENDERER_TYPE
The standard renderer type.-
Fields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
-
Constructor Summary
Constructors Constructor Description InlineScriptRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endElement(ResponseWriter writer)
End the element.void
startElement(ResponseWriter writer, UIComponent component)
Start the element.void
writeResource(Reader reader, ResponseWriter writer)
Write the resource inline.-
Methods inherited from class org.omnifaces.renderer.InlineResourceRenderer
encodeChildren, getRendersChildren
-
Methods inherited from class jakarta.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue
-
-
-
-
Field Detail
-
RENDERER_TYPE
public static final String RENDERER_TYPE
The standard renderer type.- See Also:
- Constant Field Values
-
-
Method Detail
-
startElement
public void startElement(ResponseWriter writer, UIComponent component) throws IOException
Description copied from class:InlineResourceRenderer
Start the element.- Specified by:
startElement
in classInlineResourceRenderer
- Parameters:
writer
- The response writer.component
- TheUIComponent
to which this element corresponds.- Throws:
IOException
- When an I/O error occurs.
-
writeResource
public void writeResource(Reader reader, ResponseWriter writer) throws IOException
Description copied from class:InlineResourceRenderer
Write the resource inline.- Specified by:
writeResource
in classInlineResourceRenderer
- Parameters:
reader
- The reader providing the resource content.writer
- The response writer where the resource content has to be written to.- Throws:
IOException
- When an I/O error occurs.
-
endElement
public void endElement(ResponseWriter writer) throws IOException
Description copied from class:InlineResourceRenderer
End the element.- Specified by:
endElement
in classInlineResourceRenderer
- Parameters:
writer
- The response writer.- Throws:
IOException
- When an I/O error occurs.
-
-