Top Fields Constructors Methods
com.sun.faces.lifecycle

public Class ClientWindowImpl

extends ClientWindow
Class Inheritance
Static Imports
com.sun.faces.context.SessionMap.getMutex, com.sun.faces.renderkit.RenderKitUtils.PredefinedPostbackParameter.CLIENT_WINDOW_PARAM

Field Summary

Modifier and TypeField and Description
pack-priv String
Inherited from jakarta.faces.lifecycle.ClientWindow:
CLIENT_WINDOW_MODE_PARAM_NAMENUMBER_OF_CLIENT_WINDOWS_PARAM_NAME

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String
public void
decode(FacesContext
the FacesContext for this request.
context
)

Implements abstract jakarta.faces.lifecycle.ClientWindow.decode.

The implementation is responsible for examining the incoming request and extracting the value that must be returned from the getId method.

public String
getId()

Implements abstract jakarta.faces.lifecycle.ClientWindow.getId.

Return a String value that uniquely identifies this ClientWindow within the scope of the current session.

public Map<String, String>
getQueryURLParameters(FacesContext
the FacesContext for this request.
context
)

Implements abstract jakarta.faces.lifecycle.ClientWindow.getQueryURLParameters.

This method will be called whenever a URL is generated by the runtime where client window related parameters need to be inserted into the URL.

Inherited from jakarta.faces.lifecycle.ClientWindow:
disableClientWindowRenderModeenableClientWindowRenderModeisClientWindowRenderModeEnabled

Field Detail

idback to summary
pack-priv String id

Constructor Detail

ClientWindowImplback to summary
public ClientWindowImpl()

Method Detail

calculateClientWindowback to summary
private String calculateClientWindow(FacesContext context)
decodeback to summary
public void decode(FacesContext context)

Implements abstract jakarta.faces.lifecycle.ClientWindow.decode.

Doc from jakarta.faces.lifecycle.ClientWindow.decode.

The implementation is responsible for examining the incoming request and extracting the value that must be returned from the getId method. If CLIENT_WINDOW_MODE_PARAM_NAME is "none" this method must not be invoked. If CLIENT_WINDOW_MODE_PARAM_NAME is "url" the implementation must first look for a request parameter under the name given by the value of jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_PARAM. If no value is found, look for a request parameter under the name given by the value of jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_URL_PARAM. If no value is found, fabricate an id that uniquely identifies this ClientWindow within the scope of the current session. This value must be made available to return from the getId method. The value must be suitable for inclusion as a hidden field or query parameter. If a value is found, decrypt it using the key from the session and make it available for return from getId.

Parameters
context:FacesContext

the FacesContext for this request.

Annotations
@Override
getIdback to summary
public String getId()

Implements abstract jakarta.faces.lifecycle.ClientWindow.getId.

Doc from jakarta.faces.lifecycle.ClientWindow.getId.

Return a String value that uniquely identifies this ClientWindow within the scope of the current session. See decode for the specification of how to derive this value.

Returns:String

the id of the ClientWindow

Annotations
@Override
getQueryURLParametersback to summary
public Map<String, String> getQueryURLParameters(FacesContext context)

Implements abstract jakarta.faces.lifecycle.ClientWindow.getQueryURLParameters.

Doc from jakarta.faces.lifecycle.ClientWindow.getQueryURLParameters.

This method will be called whenever a URL is generated by the runtime where client window related parameters need to be inserted into the URL. This guarantees custom ClientWindow implementations that they will have the opportunity to insert any additional client window specific information in any case where a URL is generated, such as the rendering of hyperlinks. The returned map must be immutable. The default implementation of this method returns the empty map.

Parameters
context:FacesContext

the FacesContext for this request.

Returns:Map<String, String>

null or a map of parameters to insert into the URL query string.

Annotations
@Override