org.richfaces.focus

## Interface FocusManager

-     public interface FocusManager

  Service for managing Focus of components on the page.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `FOCUS_CONTEXT_ATTRIBUTE`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `focus(String componentId)` Enforces to focus given component.

- - ### Field Detail

    - #### FOCUS_CONTEXT_ATTRIBUTE

          static final String FOCUS_CONTEXT_ATTRIBUTE

  - ### Method Detail

    - #### focus

          void focus(String componentId)

      Enforces to focus given component.

      In order to ensure the focus will be given to component, this method must be used before `PhaseId.RENDER_RESPONSE` phase takes place.

      Parameters:
        `componentId` - ID of the component to be focused; or null if focus should not be enforced

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.