3 Replies Latest reply on Sep 18, 2007 12:25 PM by Pete Muir

    Problem of updating component on a page after ajax?s call

    Christopher no Newbie

      Hi,

      Let?s say that I have outjected List variable

      @Out
      List<Person> employees;
      


      Then through remoting I call changeList() method:

      public void changeList(){
      
      
       employees = new ArrayList<Person>();
       Person person = new Person();
       person.setFirstName(?John?);
       person.setLastName(?Smith?);
       employess.add(person);
       ?.
      }
      


      And now I don?t know how to update page that i.e. selectOneMenu shows list of employees with the employee who were added in changeList() method. Because after calling by ajax changeList() method the list (in selectOneMenu) on the page stays unchanged.

      Thanks for help in advance,
      jquery