Right Mouse Click Behavior

Attaches any of the predefined JSF Widget Library (JWL) actions and/or user-supplied JavaScriptâ„¢ to the clicking of the right mouse button. Primarily used to replace the browsers normal behavior of displaying a (browser-specific) context menu (right mouse popup menu) with a page specific behavior.

 

Rendering

This component has no visual rendering. No HTML is rendered.

 

Quick Edit view

Configure this component using the Quick Edit view. To open the Quick Edit view, click

Window | Show View | Quick Edit.

The common attributes for the <hx:behaviorRightMouse> component are listed in the table below.

Table 1. Right Mouse Click Behavior attributes

Attribute name

Description

behaviorAction

The name of the action(s) to be run. If more than one action name is provided they should be separated with a semicolon.

binding

An expression that binds the component's instance (usually a user interface component) to a bean property (usually in the backing file).

id

Assigns a name to a component. Should be a unique name within a JSP.

onActionFunction

A JavaScript function to be executed. The function is executed before the action is executed. If the function returns false, the action is not run and processing of the event is halted.

rendered

Can be set to true or false:

  • false - Component will not be rendered to the browser at runtime.

  • true - Component will get rendered. This is the default value.

target

Assigns the target frame within a frameset that a page should be loaded into when the hyperlink is clicked:

  • New Window

  • Same Frame

  • Parent Frame

  • Full Screen

targetAction

The target(s) of the action(s) to be run. By default, the action's target is the tag the behavior is assigned to (as a child or via target). If more than one action is provided, more than one target may be provided (separated by semicolons).