public class DeferredScriptRenderer extends 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.
|
PASSTHROUGH_RENDERER_LOCALNAME_KEY
Constructor and Description |
---|
DeferredScriptRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(FacesContext context,
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(FacesContext context,
UIComponent component) |
convertClientId, decode, encodeChildren, getConvertedValue, getRendersChildren
public static final String RENDERER_TYPE
public void encodeBegin(FacesContext context, 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 Renderer
IOException
public void encodeEnd(FacesContext context, UIComponent component) throws IOException
encodeEnd
in class Renderer
IOException
Copyright © 2012–2017 OmniFaces. All rights reserved.