java.lang.Object
jakarta.faces.render.Renderer
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
com.sun.faces.renderkit.html_basic.WebsocketRenderer
- All Implemented Interfaces:
ComponentSystemEventListener
,FacesListener
,EventListener
WebsocketRenderer is a class that renders the
faces.push.init()
script and decodes any client
behaviors triggered by UIWebsocket
.- Since:
- 2.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
-
Field Summary
Fields inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
EMPTY_PARAMS, logger
Fields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(FacesContext context, UIComponent component) Decode all client behaviors.void
encodeEnd
(FacesContext context, UIComponent component) Renderfaces.push.init()
function if necessary.void
processEvent
(ComponentSystemEvent event) After adding component to view, subscribeWebsocketFacesListener
if necessary.Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
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
Methods inherited from class jakarta.faces.render.Renderer
encodeBegin, encodeChildren, getConvertedValue
-
Field Details
-
RENDERER_TYPE
- See Also:
-
-
Constructor Details
-
WebsocketRenderer
public WebsocketRenderer()
-
-
Method Details
-
processEvent
After adding component to view, subscribeWebsocketFacesListener
if necessary.- Specified by:
processEvent
in interfaceComponentSystemEventListener
- Parameters:
event
- theComponentSystemEvent
instance that is being processed.- Throws:
AbortProcessingException
- if lifecycle processing should cease for this request.
-
decode
Decode all client behaviors.- Overrides:
decode
in classHtmlBasicRenderer
- Parameters:
context
-FacesContext
for the request we are processingcomponent
-UIComponent
to be decoded.
-
encodeEnd
Renderfaces.push.init()
function if necessary.- Overrides:
encodeEnd
in classHtmlBasicRenderer
- Parameters:
context
-FacesContext
for the response we are creatingcomponent
-UIComponent
to be rendered- Throws:
IOException
- if an input/output error occurs while rendering
-