1 Reply Latest reply on Sep 5, 2008 9:23 AM by Stan Silvert

    Can I get objects from my seam contexts?

    Sergei Zaplitny Newbie

      Can I get objects from my seam contexts and if so - how can I do this?

        • 1. Re: Can I get objects from my seam contexts?
          Stan Silvert Master

          With the Beta 3 release, we added support for Seam conversation scope. There is nothing extra to configure.

          To get a managed in any context, you use the expression language.

          @Name("myBean")
          @Scope(ScopeType.CONVERSATION)
          public class Bean implements Serializable
          {
          
          }


          JSFSession jsfSession = new JSFSession("/mypage.seam");
          JSFServerSession server = jsfSession.getJSFServerSession();
          Object conversationScopeBean = server.getManagedBeanValue("#{myBean}");


          Stan