2 Replies Latest reply on Feb 9, 2008 3:50 PM by Nicklas Karlsson

    Focus field on page load

    Nicklas Karlsson Master

      Just a small feture inquiry:

      would it be out of context for the framework to have an s:prefocus tag that would be used like

      <h:inputText value="...">
       <s:prefocus/>
      </h:inputText>
      


      That would insert at the end of a page a
       <script>document.getElementById('...').focus()</script>
      

      (or whatever the browser-compatible code would be)?