1 2 Previous Next 16 Replies Latest reply on Dec 9, 2005 5:35 AM by landels Go to original post
      • 15. Re: Conversation start with @Factory ?
        lcoetzee

        Hi,

        I got it working using the latest CVS version of Seam. Gavin posted a fix very recently:

        http://www.jboss.com/index.html?module=bb&op=viewtopic&t=73702

        Here is my factory method :

        @Factory("contentLoaded")
        @Begin
        public String findAllNapContent() {
         logger.info("Loading all content. Starting conversation");
         loadContent();
         loadAllLanguages();
         contentLoaded = new String("content loaded");
         return "success";
        }


        I don't think the return value is really used by the @Factory as the page that gets displayed is the one that you initially requested in the GET. However, if you should also use that method through a commandlink/commandaction mechanism the return value will determine the next page to display based on your navigation rule in the faces-config.xml.

        Regards

        Louis



        • 16. Re: Conversation start with @Factory ?
          landels

          Cool, we give it a try! :)
          thanks,
          Lachezar

          1 2 Previous Next