java.lang.Object
jakarta.faces.render.Renderer<UIOutput>
org.omnifaces.renderer.InlineResourceRenderer
org.omnifaces.renderer.InlineScriptRenderer
This renderer enables rendering a JS resource inline.
This is internally only used by
CombinedResourceHandler- Since:
- 1.2
- Author:
- Bauke Scholtz
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(ResponseWriter writer) End the element.voidstartElement(FacesContext context, ResponseWriter writer, UIOutput component) Start the element.voidwriteResource(Reader reader, ResponseWriter writer) Write the resource inline.Methods inherited from class org.omnifaces.renderer.InlineResourceRenderer
encodeChildren, getRendersChildrenMethods inherited from class jakarta.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue
-
Field Details
-
RENDERER_TYPE
The standard renderer type.- See Also:
-
-
Constructor Details
-
InlineScriptRenderer
public InlineScriptRenderer()
-
-
Method Details
-
startElement
public void startElement(FacesContext context, ResponseWriter writer, UIOutput component) throws IOException Description copied from class:InlineResourceRendererStart the element.- Specified by:
startElementin classInlineResourceRendererwriter- The response writer.component- TheUIComponentto which this element corresponds.- Throws:
IOException- When an I/O error occurs.
-
writeResource
Description copied from class:InlineResourceRendererWrite the resource inline.- Specified by:
writeResourcein 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
Description copied from class:InlineResourceRendererEnd the element.- Specified by:
endElementin classInlineResourceRenderer- Parameters:
writer- The response writer.- Throws:
IOException- When an I/O error occurs.
-