o

Tag socket

Component Information 
InfoValue
Component Typeorg.omnifaces.cdi.push.Socket
Handler ClassNone
Renderer TypeNone
DescriptionNone
Attributes 
NameRequiredTypeDescription
bindingfalsejakarta.el.ValueExpression
(must evaluate to jakarta.faces.component.UIComponent)
The ValueExpression linking this component to a property in a backing bean.
channeltruejakarta.el.ValueExpression
(must evaluate to java.lang.String)
The name of the push channel. It may not be an EL expression and it may only contain alphanumeric characters, hyphens, underscores and periods. All open connections on the same channel will receive the same push message from the server.
connectedfalsejakarta.el.ValueExpression
(must evaluate to boolean)
Whether to (auto)connect the web socket or not. Defaults to true. It's interpreted as a JavaScript instruction whether to open or close the web socket push connection. Note that this attribute is re-evaluated on every ajax request. You can also explicitly set it to false and then manually control in JavaScript by OmniFaces.Push.open("channelName") and OmniFaces.Push.close("channelName").
idfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
The component identifier for this component. This value must be unique within the closest parent component that is a naming container.
onclosefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
The JavaScript event handler function that is invoked when the push connection is closed.
onerrorfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
The JavaScript event handler function that is invoked when a connection error has occurred.
onmessagetruejakarta.el.ValueExpression
(must evaluate to java.lang.String)
The JavaScript event handler function that is invoked when a push message is received from the server. The function will be invoked with three arguments: the push message, the channel name and the raw MessageEvent itself.
onopenfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
The JavaScript event handler function that is invoked when the push connection is opened. The function will be invoked with one argument: the channel name.
portfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Integer)
The port number of the web socket host, in case it is different from the port number in the request URI. Defaults to the port number of the request URI.
renderedfalsejakarta.el.ValueExpression
(must evaluate to boolean)
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true.
scopefalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
The scope of the push channel. It may not be an EL expression and allowed values are application, session and view, case insensitive. When the value is application, then all channels with the same name throughout the application will receive the same push message. When the value is session, then only the channels with the same name in the current user session will receive the same push message. When the value is view, then only the channel in the current view will receive the push message. The default scope is application. When the user attribute is specified, then the default scope is session.
userfalsejakarta.el.ValueExpression
(must evaluate to java.io.Serializable)
The user identifier of the push channel, so that user-targeted push messages can be sent. All open connections on the same channel and user will receive the same push message from the server. It must implement Serializable and preferably have low memory footprint. Suggestion: use #{request.remoteUser} or #{someLoggedInUser.id}.

Output generated by Vdldoc View Declaration Language Documentation Generator.