public class WebsocketRenderer extends HtmlBasicRenderer implements 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
PASSTHROUGH_RENDERER_LOCALNAME_KEY
Constructor and Description |
---|
WebsocketRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
decode(FacesContext context,
UIComponent component)
Decode all client behaviors.
|
void |
encodeEnd(FacesContext context,
UIComponent component)
Render
jsf.push.init() function if necessary. |
void |
processEvent(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
encodeBegin, encodeChildren, getConvertedValue
public static final String RENDERER_TYPE
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException
WebsocketFacesListener
if necessary.processEvent
in interface ComponentSystemEventListener
event
- the ComponentSystemEvent
instance that
is being processed.AbortProcessingException
- if lifecycle processing should
cease for this request.public void decode(FacesContext context, UIComponent component)
decode
in class HtmlBasicRenderer
context
- FacesContext
for the request we are processingcomponent
- UIComponent
to be decoded.public void encodeEnd(FacesContext context, 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 renderingComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.