1 Reply Latest reply on Jul 29, 2008 5:40 PM by m--m

    ListShuttle problem with immediate reRender

    m--m

      I have a a4j:support with immediate="true", it fires an actionListener and rerenders a listshuttle

      BUT

      The rerender of the listShuttle is done BEFORE the actionListener...

      WHY??



      <h:selectOneMenu value="#{scopedBean.value}" immediate="true">
      
      
       <f:selectItem itemValue=" " itemLabel="" />
      
       <f:selectItem itemValue="3" itemLabel="prova3" />
       <f:selectItem itemValue="4" itemLabel="prova4" />
       <a4j:support immediate="true" event="onchange"
       actionListener="#{scopedBean.metodo}">
      
       </a4j:support>
      
       </h:selectOneMenu>
      
       <a4j:outputPanel id="listshut">
       <rich:listShuttle sourceValue="#{scopedBean.values}" var="prova"
       converter="#{scopedBean.defectConverter}"
       binding="#{scopedBean.listshut}"
       targetValue="#{scopedBean.targetValues}">
       <h:column>
       <h:outputText value="#{prova.description}"></h:outputText>
       </h:column>
      
       </rich:listShuttle>
      
       <h:outputText value="#{scopedBean.values}"></h:outputText>
       </a4j:outputPanel>
      
      
      

      The Actionlistener update the sourceList of the listshuttle;
      the outputText show the correct list instead the listshuttle show the list before the update