3 Replies Latest reply on Apr 18, 2008 4:13 PM by tomas kral

    a:status and h:inputText focus lost

    tomas kral Newbie

      I have following input with ajax support:

      <h:inputText id="name" value="#{name}" >
        <a:support event="onkeyup" action="#{...}" reRender="searchResults" status="ajax_status"/>
      <a:status forceId="true" id="ajax_status">
        <f:facet name="start">
          <h:graphicImage value="/images/ajaxLoader.gif" alt="#{msg['status.readingData']}" />

      Everything works perfect except that inputText losts focus after ajax request is invoked and status icon appears and then disappears.

      I try to focus inputText in oncomplete (javascript) event support tag but it doesn't work.

      How can I keep inputText focused?

      thanks for help