3 Replies Latest reply on Feb 20, 2009 10:02 PM by blabno

    Outjection of Long value to Session scope isn't working (other scopes are fine)

    Rend D Newbie

      I have a simple seam component like the following:

      public class Foo {
        @Out(required=false, scope=SESSION)
        private Long id;
        public void setId(Long id)
          if (id != null)
            this.id = id;
        public Long getId()
          return id;

      If I click on a button like:

      <h:commandButton action="#{foo.setId('10')" value="set 10"/>

      ... I'd expect operationId to be 10 for the duration of my httpSession. That's not the case here though. Outjecting to APPLICATION scope, on the otherhand, works fine. It seems only SESSION is affected.

      This is with Seam 2.0.2.SP1. Any ideas?