3 Replies Latest reply on May 9, 2008 3:00 PM by hanafey

    a4j:support focus=

    hanafey

      With the change to 3.2.1 (and maybe it happened with 3.2.0), setting focus as shown in the example below now means that the focussed field gets selected, which means when the next character is typed the current contents is erased. Before the focus was needed to keep the cursor in the field of interest. Now it seems to stay there without a "focus", and "focus" now seems to mean "select".

      <h:inputText id="Frag" value="#{nameAjax.nameFrag}">
       <a4j:support event="onkeyup" reRender="xyz" ajaxSingle="true" focus="Frag" />
       </h:inputText>


      Is the current behaviour the way it is supposed to be? I have no problem omitting the "focus" but the change in behaviour does cripple existing views.

        • 1. Re: a4j:support focus=
          hanafey

          Why does the forum mess with subjects????

          I entered

          a4j:support focus="foo" now means "foo" is selected

          for the subject, but when it was submitted the title was truncated. This has happened to me before. What are the rules on the subject line? Is a quote character not allowed?

          • 2. Re: a4j:support focus=

            This forum is not a right place to answer the question about the forum itself. Just no one from the guys who responsible for JBoss forums read this forum.

            • 3. Re: a4j:support focus=
              hanafey

              Hand slap accepted. But what about the original question?