[jboss-user] [JBoss Seam] - @Out Question
Holger Prause
do-not-reply at jboss.com
Wed Jul 26 16:35:19 EDT 2006
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
More information about the jboss-user
mailing list