public class DeferredScriptRenderer
extends javax.faces.render.Renderer
DeferredScript
. The rendering is extracted from the component so
that it can be reused by CombinedResourceHandler
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RENDERER_TYPE
The standard renderer type.
|
Constructor and Description |
---|
DeferredScriptRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Writes a
<script> element which calls OmniFaces.DeferredScript.add with as
arguments the script URL and, if any, the onbegin, onsuccess and/or onerror callbacks. |
public static final java.lang.String RENDERER_TYPE
public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
<script>
element which calls OmniFaces.DeferredScript.add
with as
arguments the script URL and, if any, the onbegin, onsuccess and/or onerror callbacks. If the script resource is
not resolvable, then a RES_NOT_FOUND
will be written to src
attribute instead.encodeChildren
in class javax.faces.render.Renderer
java.io.IOException