1 Reply Latest reply on Sep 13, 2007 12:12 PM by Ilya Shaikovsky

    Ajax4JSF: h:outputText is rendered only on third word

    Jair Rillo Junior Newbie

      Hi guys,

      I am starting in Ajax4JSF now.
      I have created a simple example (similar than the example in JBoss page) with a h:inputText and a h:outputText fields. When the value is changed in inputText, the value should appears on outputText.

      Following the code:

       <a4j:form>
       <table>
       <tr>
       <td>Text</td>
       <td>
       <h:inputText id="text" value="#{example1.text}">
       <a4j:support event="onkeyup" reRender="newText" />
       </h:inputText>
       </td>
       </tr>
       <tr>
       <td>New Text</td>
       <td>
       <strong><h:outputText value="#{example1.text}" id="newText" /></strong>
       </td>
       </tr>
       </table>
       </a4j:form>
      


      My ManagedBean, has a attribute called "text" and has get and set method. It is mapped properly in faces-config.xml

      The big problem is about the time to render the h:outpuText component. This component is rendered after the third word in h:inputText, in other words, when I type 123, only after the "3" the component is rendered.

      After that, everytime the component is rendered properly.

      Does anyone has any idea about this issue?