2 Replies Latest reply on Apr 25, 2008 2:57 PM by Joao Viragine

    Factory, how to update the value of it

    christophe gaultier Newbie

      Hey everybody,


      I got a little problem:


      I have something like that in my class1:



       @Factory("yyFactory")
          public void getYYM() {
              yyFactory = xxFacade.getYYM(param1, param2);
          }




      yyFactory is in scope session



      @In(required = false, scope = ScopeType.SESSION)
          @Out(required = false, scope = ScopeType.SESSION)
          protected YyFactory yyFactory = null;




      but sometimes I need to update the yyFactory value, if I'm in a method of class1 , I just call getYYM(), and its great.


      But if I'm in a method of class2


      How to update/reinitialized yyFactory


      It look like it will be easier for me to have yyFactory in scope conversation, but I can't for this project


      So do who have any idea, trick ??
      I tried to get the Contexts.....
      put some action cases in pages.xml


      but maybe I'm doing it wrong


      Thx