This content has been marked as final.
Show 2 replies
-
1. Re: Data entry's backing bean not picking up entries on form
pgmjsd May 17, 2007 6:32 AM (in response to tonylmai)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? -
2. Re: Data entry's backing bean not picking up entries on form
tonylmai May 17, 2007 10:54 AM (in response to tonylmai)I thought filling the fields in the backing bean was supposedly the job of Seam/JSF engine. How is it that the fields were still null after the form had been submitted?