1 Reply Latest reply on Feb 28, 2008 5:15 AM by Ilya Shaikovsky

    selection orderingList not getting

    vijay kumar Novice

      hii everybody

      i have an orderingList. but when i select the list. i am not getting the selected items in the backend

      my .xhtml code is

      <rich:orderingList id="ol" value="#{componentBean.componentList}" var="row" selection="#{componentBean.selection}" >
      <a4j:commandButton value="reRender" ></a4j:commandButton>

      and my backend code is

      public void setSelection(Collection selection) {
       System.out.println("set selection " + selection);
       this.selection = selection;
      public Collection getSelection() {
       System.out.println("inside getselection "+ selection);
       return selection;

      i dont know whether this is correct or not. now i am doing like this. when i click on the command button i should get the selected list.

      please help me
      thanks in advance