Well, it's metadata so I suspect that MG only looks at the controller metadata and doesn't walk the extends tree to see if a parent controller has that metadata. It's an interesting philosophical question as to whether a framework should walk the inheritance metadata or not: it depends on whether the framework encourages reuse of abstract concepts / metadata or whether it encourages reuse of implementation (neither is inherently good or bad - they're just different design decisions).
On Wed, Jun 2, 2010 at 2:31 PM, Nolan Erck <[email protected]> wrote: > No. When I go to reload my app, I get the same error message as before: > > "Element USERSERVICE is undefined in a Java object of type class > [Ljava.lang.String;." > > ...on the line in question, in BaseController.cfc, where it's referencing > UserService. > > I guess it comes down to if the Beans scope is referenced in both a parent > and child controller, are the 2 supposed to be appended together? Or should > each class get its own beans scope? > > One interesting note: I have to have beans="userService" in ALL of my child > Controller CFCs, even if it's not used in the Controller itself but because > they all inherit from BaseController cfc, and that does indeed use > beans.userService, MG wont even build the app unless I specify UserService > in every child CFC. > > That seems like a bug to me. Or am I just REALLY misunderstanding how the > beans scope should be getting used? -- 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
