[jboss-user] [JBoss Seam] - [Newbie] Understanding Bijection

jpbievenour do-not-reply at jboss.com
Fri Jan 18 10:55:54 EST 2008

I've been reading through the Seam docs and the concept of Bijection is still a little hazy for me.

How I understand it so far:
Injection is used on the session bean to make the entity available without having to "manually" construct it.

  | @In
  | Foo foo;

  | Foo foo = new Foo();

When using injection, Seam searches its context for a component named "foo" and injects it into the session bean. If it is in a stateful context (such as SESSION), this injection may already have data, which otherwise would not be available using the simple constructor. If it doesn't have data, a factory can be called to instantiate the injection. 

To make a component available to the presentation tier, you must outject it  so it can be referenced in JSF.

  | Java
  | @Out
  | Bar bar;

  | JSF
  | <h:outputText value="#{bar.value}"/>

Is my understanding correct so far?


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

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

More information about the jboss-user mailing list