1 Reply Latest reply on May 22, 2008 1:25 PM by Joseph Nusairat

    Selected not working in orderingList ?

    Amir Shay Newbie

      Using RichFaces 3.1.4 + Seam 2.0.1 its seems that the selected of orderingList is not working . When working in the following code and selecting items list is always empty

      the Xhtml

      <a:form id="new_item_list">
      <rich:orderingList value="#{addData.newPersonalList}" var="item" listWidth="200px" controlsType="button" selection="#{addData.newPersonalListChose}" showButtonLabels="false">
      <f:facet name="caption">
      <h:outputText value="Chosen Data"/>
      <f:facet name="header">
      <h:outputText value="Description" />
      <h:outputText value="#{item.itemHeader}" />
       <!-- list of entered data -->
      <a:commandButton value="Remove" action="#{addData.removeItemNew}" reRender=" new_item_list" </a:form>


      private ArrayList<DataToFetch> newPersonalListChose = new ArrayList<DataToFetch>(); // list of chosen from the many list
       private List<DataToFetch> newPersonalList = new ArrayList<DataToFetch>(); // list of items added

      public void removeItemNew()
       for(DataToFetch item:newPersonalListChose)
       // check if the item has parts
       for(DataToFetch partItem:newPersonalListParts)
       if (partItem.getItemHeader().equals(item.getItemHeader())) newPersonalListParts.remove(partItem);

      Here is newPersonalListChose has no components while newPersonalList has the inserted components