7 Replies Latest reply on May 5, 2011 1:58 AM by Dominic Warzok

    How Do I Set focus on an inputText field after an onkeyup event?

    John Bailo Master

      <h:inputText id="cnFilter" value="#{ADAMDataModel.cn_FilterValue}" >
                                           <a4j:support event="onkeyup" reRender="adamUsers,footer" />


      I am using an inputText box as a way to specify a filter for a dataTable.


      The problem is, after each onkeyup event, the focus is blurred.


      So as I type each letter in the inputText box, I have to put the mouse back on the inputText field.


      How do I return focus to the inputText box after each onkeyup event?