This renderer is the default renderer of
DeferredScript. The rendering is extracted from the component so
that it can be reused by CombinedResourceHandler.- Since:
- 1.8
- Author:
- Bauke Scholtz
-
Field Summary
FieldsFields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeBegin(FacesContext context, DeferredScript component) Writes a<script>element which callsOmniFaces.DeferredScript.addwith as arguments the script URL and, if any, the onbegin, onsuccess and/or onerror callbacks.voidencodeEnd(FacesContext context, DeferredScript component) Methods inherited from class jakarta.faces.render.Renderer
convertClientId, decode, encodeChildren, getConvertedValue, getRendersChildren
-
Field Details
-
RENDERER_TYPE
The standard renderer type.- See Also:
-
-
Constructor Details
-
DeferredScriptRenderer
public DeferredScriptRenderer()
-
-
Method Details
-
encodeBegin
Writes a<script>element which callsOmniFaces.DeferredScript.addwith as arguments the script URL and, if any, the onbegin, onsuccess and/or onerror callbacks. If the script resource is not resolvable, then aRES_NOT_FOUNDwill be written tosrcattribute instead.- Overrides:
encodeBeginin classRenderer<DeferredScript>- Throws:
IOException
-
encodeEnd
- Overrides:
encodeEndin classRenderer<DeferredScript>- Throws:
IOException
-