[jboss-user] [JBoss Seam] - Re: Conversation binding workaround

2007-04-23 Thread vineetmanohar
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

[jboss-user] [JBoss Seam] - Re: Conversation binding workaround

2007-04-23 Thread petemuir
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

[jboss-user] [JBoss Seam] - Re: Conversation binding workaround

2007-04-23 Thread vineetmanohar
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

[jboss-user] [JBoss Seam] - Re: Conversation binding workaround

2007-04-20 Thread petemuir
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