-
1. Re: Why use the @In annotion?
pmuir Jun 29, 2006 4:17 PM (in response to c_eric_ray)Have you read http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/concepts.html#d0e2511 and the examples in Chapter 1?
For your example, a JSF input component with a value="#{mo}" would have the value entered by the user injected into your backing bean. -
2. Re: Why use the @In annotion?
c_eric_ray Jun 29, 2006 5:14 PM (in response to c_eric_ray)Yes, I've read through the documentation, those sections in particular I have read several times.
I thought JSF did that for you automatically, through binding. So<h:inputText value=#{mo.field}>
binds the value enterd by the user in the backing bean variable.
I still don't understand the why about using @In or not using it. I guess I don't understand what using @In does over binding JSF data to beans. Is there a difference? Or is this just how SEAM does the same thing to add more Contexts.
Thanks again,
Eric -
3. Re: Why use the @In annotion?
gavin.king Jun 29, 2006 9:05 PM (in response to c_eric_ray)JSF automatically binds form fields to objects.
It does not automatically wire together managed bean components, unless you tell it to.
You use @In to wire components together. This is quite different to binding form data to a component. -
4. Re: Why use the @In annotion?
c_eric_ray Jun 30, 2006 8:45 AM (in response to c_eric_ray)I see. This then replaces the managed bean configuration in the faces-config.xml file. Excellent. Thanks all.
Eric