Focus Component

Author: Rogério Araújo

A component that controls the focus on the page across submissions, this component is available under sandbox subproject.

Focus currently has only one attribute called "for". In this attribute you must specify the component that will be focused after page load/reload.

For assistance, send email to


<html [...] xmlns:s="">
    <h:form id="form">
        <h:inputText value="#{value}" id="name" />
        <s:focus id="focus" for="#{bean.focus}" />

Implementation notes

Focus (last edited 2009-09-20 23:01:24 by localhost)