Options
All
  • Public
  • Public/Protected
  • All
Menu

Describes a server callback parameter for an AJAX call. For example, when you call a <p:remoteCommand name="myCommand" /> from the client, you may pass additional parameters to the backing bean like this:

myCommand([
{
name: "MyParam",
value: "MyValue",
}
]);

In the backing bean, you can access this parameter like this:

final String myParam = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("myParam");

Type Parameters

  • K extends string = string

    Name of this parameter.

  • V = unknown

    Type of the value of the callback parameter. Please note that it will be converted to string before it is passed to the server.

Hierarchy

  • RequestParameter

Index

Properties

Properties

name: K

The name of the parameter to pass to the server.

value: V

The value of the parameter to pass to the server.

Generated using TypeDoc