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

    Factory with @Out in Weld

    umajeric

      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