The problem is that the injected "tradeEntry" context variable was not set
before invoking the method. When you used @In(create=true), Seam instantiated the
component for you and suck it in the context before injecting it into TradeManagerBean.
Naturally, this calls the default constructor so all the fields are initialized
accordingly: all nulls, etc.
How about having addTradeEntry() method should fill in the fields in TradeEntry?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046433#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...