[jboss-user] [JBoss Seam] - Re: 2 questions about Seam

denis-karpov do-not-reply at jboss.com
Fri Mar 30 04:53:53 EDT 2007


Second question

@Out @In works with contexts.

@Out
private String hotel; 
The @Out annotation declares that an attribute value is outjected to a context variable after method invocations. In this case, the context variable named hotel will be set to the value of the hotel instance variable after every action listener invocation completes.   (C)Seam Reference.

The key point for understanding, that injection and outjection occurs on each invocation of an any method of this bean, that was made as action listener invocation. If you just call method from java code there will be no in/outjection.

And also be aware with what contexts you are working.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033049



More information about the jboss-user mailing list