5 Replies Latest reply on Sep 3, 2009 4:39 AM by Ilya Shaikovsky

    Setting focus to an element which is rerendered

    Ori Kremer Newbie

      I'm trying to set the focus to an element which is in the rerendered section with no luck.

      <a4j:region>
      <h:panelGroup id="section">
       <h:inputText id="input" value="#{bean.someValue}" />
       <h:inputText id="trigger" value="#{bean.trigger}">
       <a4j:support event="onblur" reRender="section" focus="input" />
       </h:inputText>
      </h:panelGroup>
      </a4j:region>
      


      In the log I can see it's trying to set the focus to the correct element, and actually says it did, but upon completion the focus is not set.

      Ideas?