Set Initial Focus Behavior

When a page is loaded, sets the initial focus to the specified field or the first field in the tab order of the page. In other words, the component attaches the JWL FOCUS or SELECTED action to the onload event of the page body tag. Without this behavior, browsers usually set initial focus to the URL field in the toolbar.

 

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:inputHelperSetFocus> component are listed in the table below.

Table 1. Set Initial Focus Behavior attributes

Attribute name

Description

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.

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.

select

If true, the content of the field receiving focus is initially selected. If omitted or false, the content of the field initially receiving focus is not selected.

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