1 Reply Latest reply on Dec 20, 2007 9:53 PM by kragoth

    resolving SEAM beans - not working

    kragoth

      I'm having a bit of a problem now resolving my Identity bean when working in a JSFUnit test.

      What I believe should work is:

      server.getManagedBeanValue("#{identity}")
      


      But...nope I get a NullPointerException and indeed the getManagedBenaValue method is returning null.

      However if I type in this:
      server.getManagedBeanValue("#{sessionScope['org.jboss.seam.security.identity']}")
      


      This works....BUT,

      On my xhtml pages I can refer to the Identity bean with just the string
      "#{identity}"
      So, why can't i do this in my JSFUnit test?

      Is there something special with SEAM beans that means they can't be resolve in a normal way?