10 Replies Latest reply on Apr 13, 2010 8:13 AM by Nicklas Karlsson

    Factory with @Out in Weld

    Uros Majeric Newbie

      Hej,
      I would like to implement such kind of behaviour in weld:



      @Out(scope=SESSION)
      private List<Objects> myList;
      
      @Factory("myList")
      public void initMyList() {
        myList = ...;
      }



      my solution looks like this:


      @Produces 
      @Named("myList")
      public List<Object> initMyList() {
        return someNewList();
      }
      



      My problem now is: when I call some method on bean which contains those methods and in it I call initMyList(); my list on page is not populated.


      Any idea?


      thans for help.


      Uros