Java Platform, Enterprise Edition (Java EE) 8 The Java EE Tutorial |
Previous | Next | Contents |
Table 17-1 describes the attributes of
the f:websocket
tag.
Table 17-1 Attributes of the f:websocket
Tag
Name |
Type |
Description |
|
String |
Required. The name of the WebSocket channel. It may not be an EL expression and may only contain alphanumeric characters, hyphens, underscores, and periods. All open WebSockets on the same channel name will receive the same push notification from the server. |
|
String |
Optional. The identifier of the UIWebSocket component to be created. |
|
String |
Optional. The scope of the WebSocket channel. It may not be
an EL expression. Allowed values (case insensitive) are: When the value is The default scope is |
|
Serializable |
Optional. The user identifier of the WebSocket channel, so that user-targeted push messages can be sent. It must implement Serializable and preferably have a low memory footprint. Hint: Use All open WebSockets on the same channel and user will receive the same push message from the server. |
|
String |
Optional. The JavaScript event handler function that is invoked when the WebSocket is opened. The function is invoked with one argument: the channel name. |
|
String |
Optional. The JavaScript event handler function that is
invoked when a push message is received from the server. The function is invoked
with three arguments: the push message, the channel name, and the |
|
String |
Optional. The JavaScript event handler function that is
invoked when the WebSocket is closed. The function is invoked with three
arguments: the close reason code, the channel name, and the Note that this will also be invoked on errors. If an error occurred, you can
inspect the close reason code and which code was given (for example, when the
code is not |
|
Boolean |
Optional. Specifies whether to auto-reconnect the
WebSocket. Defaults to This attribute is implicitly re-evaluated on every ajax request by a
|
|
Boolean |
Optional. Specifies whether to render the WebSocket scripts.
Defaults to This attribute is implicitly re-evaluated on every ajax request by a
|
|
UIComponent |
Optional. The value binding expression to a backing
bean property bound to the component instance for the |
Previous | Next | Contents |