ok - here is some results from testing ...

case 1
anonymous wrote : 
  | @In(required=false)
  | +
  | @Factory
  | 

throws no exception, but initial value is not set !

case 2
anonymous wrote : 
  | @In(required=false) @Out
  | +
  | @Factory
  | 

throws an exception, telling me the out-value must be set ! (It's what I 
expected due to case (1) 

case 3
anonymous wrote : 
  | @In(create=true)
  | +
  | @Factoty
  |     }
  | 

throws this recursive exception ...

And finally I found a combination that works for my case :o)
case 4
anonymous wrote : 
  | @In(required=false) @Out
  | +
  | @Factoty
  | public void initBean() {
  |      myBean = (MyBean)Component.getInstance("counter",true);
  | }
  | +
  | @Create
  | public void init() {
  |      myBean = (MyBean)Component.newInstance("counter");
  |      myBean.setTheValueThatShouldBeSeenInTheForm("Hello World");
  | }
  | 

I think this is not very intuitive - but once you know what you do - its easy 
...

thx for your help ...

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to