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;
|
VS.
| 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?
Thanks!
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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user