1 Reply Latest reply on Jun 16, 2008 3:17 PM by Joshua Jackson

    How to acces one bean to another bean?

    Gregory Nikle Apprentice

      Hi,
      I try to acces my authentication (conversation scope) to another bean like in this example:
      http://wiki.apache.org/myfaces/AccessingOneManagedBeanFromAnother


      When bean is getted in this line:


      NeededBean neededBean
          = (NeededBean)facesContext.getApplication()
            .createValueBinding("#{neededBean}").getValue(facesContext)



      I get


      org.javasist.tmp.java.lang.Object_$$_javassist_4




      Can anyone help me, how to create managed session scoped bean from inside authentication class and set his fields?