Thanks Sean, that's what I suspected, but have been staring at the computer screen too much lately to wrap my head around everything. :)
--n On Wed, Apr 7, 2010 at 12:35 AM, Sean Corfield <[email protected]>wrote: > On Wed, Apr 7, 2010 at 12:30 AM, Nolan Erck <[email protected]> wrote: > > I'd like to get a "sanity check" from someone about what they do when in > > this situation. Is this a sign that the controllers are too heavy, and > that > > code should be moved to the Service Layer (so I can get to it via the > > "beans" scope, in all my Controllers, and not worry about this any more)? > > Yup. A controller should never call methods in another controller. > Refactor that common logic down into the model - either the service > layer or, better, the domain objects themselves - and call it from > both controllers. > > Controllers should be relatively simple and dumb. Services should also > be relatively simple and dumb. Domain objects should be where most of > the logic lives. > -- > Sean A Corfield -- (904) 302-SEAN > Railo Technologies, Inc. -- http://getrailo.com/ > An Architect's View -- http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<model-glue%[email protected]> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > > To unsubscribe, reply using "remove me" as the subject. > -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
