5 Replies Latest reply on Jun 11, 2013 8:21 PM by Mitchel Poe

    a4j:ajax Will get/set bean, but will not rerender on page.

    Mitchel Poe Newbie

      Hello all,

       

      I have been tring to replicate the fucntionaly shown on richfaces showcases.http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=ajax&sample=ajax&skin=blueSky

       

      I have used the code given on the site, only changing the name of the bean:

              <h:form>

                  <h:inputText value="#{customer.extCustomerId}">

                      <a4j:ajax event="keyup" render="out" />

                  </h:inputText>

                  <h:outputText value="#{customer.extCustomerId}" id="out" />

              </h:form>

       

      I have ensured that there are no client or server side errors and that the page this will be displayed on contains the header tag.


      I have placed System.out messages in the getter and setter methods customer.extCustomerID.

       

      When the inputText field is used, it should populate right next to the box as in the example. It does not.

       

      If I preform a manual refresh, the text will appear from the previous update. Also, when ever I enter information into the inputText feild, I can see the System.out messages in the server log. The system is getting and setting.

       

      I am very confused... the code is talking wiht my database, but it is not rerendering so that the text appears.

       

      I am using richfaces 4.3.2.Final in netbeans.

       

      Any idea on how to get the text to rerender?

      Thanks