6 Replies Latest reply on Nov 19, 2013 2:13 PM by Brian Leathem

    rich: pickList components getTargeList () script function how to get the value?

    ruilu xu Newbie

      Hello everyone

      rich: pickList components getTargeList () script function how to get the value?

      I want to get getTargetList () value in the list, but not what I want to get the value,
      I want to get the java in list.get (0). getName () value like this

       

      The following is what I wrote javascript code:

      function test(){

                  var comp=RichFaces.$('pickForm:list');

                  alert(comp);

                  var list = comp.getTargetList();

                  alert(list);

                  for(var x in list){

                      alert(list[x]);

                  }

                  return true;

              }

      I did not want to print out the value of