Thanks again for the reply. I tried exactly what you said and ran into a
problem.
binding="#{binding.myBean.myComponent}": Target Unreachable, 'myBean' returned
null
I debugged and found that my @Create method in NumberGuess was not called yet.
Therefore the @Out-jection did not occur yet. It
Yes
@Name("numberGuess")
| @Scope(ScopeType.CONVERSATION)
| public class NumberGuess implements Serializable {
|
|@In(create=true) @Out Binding binding;
|
|@Create
|public void createBinding() {
| binding.setFoo("bar");
|}
|
|// Do work on the bin
Thanks for you reply, that was very helpful.
So suppose I created a seam component called "binding" with EVENT scope as you
have suggested, how can I initialize it? I want to set the value of this
component from my Conversation component "numberGuess".
Can I @Out-ject the value from Conversatio
Exactly.
@Name("binding")
| @Scope(EVENT)
| public class Binding {
| // Do your binding here
| }
@Name("numberGuess")
| @Scope(ScopeType.CONVERSATION)
| public class NumberGuess implements Serializable {
|
|@In Binding binding
|
|// Do work on the binding in your met