1 Reply Latest reply on Jul 26, 2006 6:09 PM by Jim Hazen

    @Out Question

    holgerprause Newbie


      i wrote a register wizard bean where u can register member.

      How can i tell @Out that it should only export values into context when the value is not null?

      I found out that @Out always export a value even when null.

      //export the tester as our logged in user
      @Out(scope=ScopeType.SESSION, required=false)
      private Customer user;

      The thing is when i reuse my wizard bean for edit action(code above) , the logged in user will be exported as a null value.

      So i changed to code below,which will fix the problem , but i am still wondering if can tell @Out that it should only export non null values

      @Out(scope=ScopeType.SESSION, required=false)
      private Customer user;

      Thank u very much hope i could describe what i am searching for ^^