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 String |
RENDERER_TYPE
The standard renderer type.
|
Constructor and Description |
---|
DeferredScriptRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(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. |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
public static final String RENDERER_TYPE
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws 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.encodeBegin
in class javax.faces.render.Renderer
IOException
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
encodeEnd
in class javax.faces.render.Renderer
IOException
Copyright © 2012–2014 OmniFaces. All rights reserved.