On Wed, 02 Jul 2008, marco m wrote: > I hear you Thomas. Maybe I should ask the question another way...does > anyone out there encapsulate their data access layer/service layer within > their model or do people put that stuff in their pages/components? Is anyone > using any patterns? if not...i feel so last year!
I'm also worried about injecting repositories and such to UI components, because it easily leads to domain logic to leak to UI layer. Lately we've been trying to put more domain logic and inject services to domain objects, and it is turning out pretty well. However, for many cases @SpringBean and friends are still excellent. For example when you have a DropDownChoice for selecting Foos and just put repository.findAll(Foo.class) to get the choice list. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oy <URL: http://www.ri.fi/ > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
