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:

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

      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?