This content has been marked as final.
Show 1 reply
-
1. Re: Scopes and Components....Tough Question?
norman Jun 7, 2008 1:23 AM (in response to dougbag)Yes, calling cart here is just fine for Seam. You could inject the other direction too (conversation component into session component) if you wanted, but I think the way you did it here is generally the more natural way. Another option is to use extended EL and simply make the end action #{cart.addItem(productBeingCustomized)} and avoid any coupling at all. There are no hard rules. Just do whatever seems to yield the most natural code.
Transactions don't change at all here if you are using seam managed transactions. (assuming you don't need the cart to execute in a separate tx)