public class WebsocketRenderer extends HtmlBasicRenderer implements javax.faces.event.ComponentSystemEventListener
jsf.push.init()
script and decodes any client
behaviors triggered by UIWebsocket
.UIWebsocket
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
Modifier and Type | Field and Description |
---|---|
static String |
RENDERER_TYPE |
EMPTY_PARAMS, logger
Constructor and Description |
---|
WebsocketRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Decode all client behaviors.
|
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render
jsf.push.init() function if necessary. |
void |
processEvent(javax.faces.event.ComponentSystemEvent event)
After adding component to view, subscribe
WebsocketFacesListener if necessary. |
augmentIdReference, convertClientId, decodeBehaviors, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, getValue, isBehaviorSource, rendererParamsNotNull, setSubmittedValue, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessary
public static final String RENDERER_TYPE
public void processEvent(javax.faces.event.ComponentSystemEvent event) throws javax.faces.event.AbortProcessingException
WebsocketFacesListener
if necessary.processEvent
in interface javax.faces.event.ComponentSystemEventListener
event
- the ComponentSystemEvent
instance that
is being processed.javax.faces.event.AbortProcessingException
- if lifecycle processing should
cease for this request.public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class HtmlBasicRenderer
context
- FacesContext
for the request we are processingcomponent
- UIComponent
to be decoded.public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
jsf.push.init()
function if necessary.encodeEnd
in class HtmlBasicRenderer
context
- FacesContext
for the response we are creatingcomponent
- UIComponent
to be renderedIOException
- if an input/output error occurs while renderingCopyright © 2010–2021 JBoss by Red Hat. All rights reserved.