Hello,

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

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


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

Bye,

Holger




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961129#3961129

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961129
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to