4 Replies Latest reply on Sep 8, 2010 3:14 AM by ilya_shaikovsky

    Doubt about modal + orderedList

    shikida

      Hi.

       

      If I code my JSF like this, sortTheList() gives me the list in the same order as the RF OL component

       

      <a4j:jsFunction name="sortJS" action="#{mybean.sortTheList}" />
      <rich:panel>
      <h:form>
      <rich:orderingList
        id="list"
        value="#{mybean.someStringList}"
        var="s"
        onorderchanged="sortJS();">
        <h:column>
         <f:facet name="header">Desc</f:facet>
         #{pergunta}
        </h:column>
      </rich:orderingList>
        <a4j:commandButton value="Save" />
      </h:form>
      </rich:panel>

       

      But if I just switch rich:panel with rich:modalPanel, then it shows me the list in the original order, right before the sorting.

       

      Am I missing something here?

       

      TIA

       

      Leo