Options
All
  • Public
  • Public/Protected
  • All
Menu

The namespace for JavaServer Faces JavaScript utilities.

Please note that this functionality may only be available when you use certain tags such as <f:ajax .../> tags.

Index

Functions

Functions

  • chain(source: string | HTMLElement, event?: Event, ...scripts: string[]): boolean
  • A varargs function that invokes an arbitrary number of scripts. If any script in the chain returns false, the chain is short-circuited and subsequent scripts are not invoked. Any number of scripts may specified after the event argument.

    Parameters

    • source: string | HTMLElement

      The DOM element that triggered this Ajax request, or an id string of the element to use as the triggering element.

    • Optional event: Event

      The DOM event that triggered this Ajax request. The event argument is optional.

    • Rest ...scripts: string[]

      List of scripts to execute in a function scope. Receives the source as the this context and one parameter event, set to the value passed to this function.

    Returns boolean

    false if any scripts in the chain return false, otherwise returns true.

Generated using TypeDoc