2 Replies Latest reply on May 12, 2010 8:36 AM by bp2s

    a4j:support action and reRender attribute synchronisation

    bp2s

      Hello

       

      I've got a rich:inplaceInput tag which has in it an a4j:support element.  The action attribute of the a4j:support calls a bean method to sort an array of integers.  The value of the rich:inplaceInput is one of these integers.

       

      If I set the reRender attribute of the a4j:support to reRender the container of all of my rich:inplaceInput tags (which represent all the integers in the array), when I enter text in the rich:inplaceInput and hit return, the element updates, and I can see from other methods that the array is sorted correctly, but the reRender seems to have not happened late enough and the list of these rich:inplaceInput tags is not updated.  How can I change it so it sorts and updates so the list is resorted whenever an inplaceInput changes?  I don't want to use the dataTable sorting.

       

      Eg code:

      <a4j:repeat ....    

      <a4j:region id="ID">
                  <rich:inplaceInput value="#{h.id}"
                      validator="#{MyBacking.validateID}"
                      id="andID" showControls="true"
                      onviewactivation="old = event.memo.oldValue;">
                      <a4j:support event="onviewactivated"
                          action="#{MyBacking.sort}"
                          reRender="FAdmin"
                          onsubmit="if (event.memo.value == old) return false;" />
                  </rich:inplaceInput>
              </a4j:region>