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.
|
| Constructor and Description |
|---|
DeferredScriptRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeChildren(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. |
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue, getRendersChildrenpublic static final String RENDERER_TYPE
public void encodeChildren(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.encodeChildren in class RendererIOException