No, there wasn't any mention of this issue in the docs. I added a note to the top of the Bean Injection page that describes this limitation as well as a work-around:
http://docs.model-glue.com/wiki/HowTos/HowToUseBeanInjection Please let me know if you think this is adequate, or whether any further explanation might be useful. Thanks, -- Ezra Parker On Tue, Mar 30, 2010 at 2:50 PM, Nolan Erck <[email protected]> wrote: > That seems to be what the problem was, thanks! (Is this noted on the docs > somewhere? I was looking around a bit, but maybe I'm just on the wrong > pages?) > > -nolan > > > > On Mon, Mar 29, 2010 at 2:53 PM, Ezra Parker <[email protected]> wrote: >> >> Hi Nolan, >> >> Are you attempting to refer to the beans scope in the controller's >> init() method, by any chance? If so, then this will definitely produce >> the error you cited, as the beans scope is injected after the >> controller component is created. >> >> Otherwise, nothing is leaping immediately to mind, as the beans scope >> should be present as an empty structure even if you don't put anything >> into it (and it should indeed be a variable named "beans" in the >> variables scope). >> >> -- >> Ezra Parker >> >> >> On Mon, Mar 29, 2010 at 3:03 PM, Nolan Erck <[email protected]> wrote: >> > Hi all -- >> > >> > I'm running the latest build (3.1.299) and trying to use the "beans >> > scope" >> > functionality, but I keep getting the error "variable BEANS is >> > undefined". >> > Tried using the "beans" attribute on my cfcomponent tag, as well as via >> > the >> > "<controller />" tag in my ModelGlue.xml files -- same result both ways. >> > >> > I did a cfdump of the "variables" scope in the Controller to see if >> > maybe I >> > was just naming things wrong somehow, but there doesn't appear to be >> > anything even close (i.e. no "bean" or "_bean" scope, etc). >> > >> > Currently my cfcomponent tags look about like so: >> > >> > <cfcomponent output="false" hint="Handles News related issues." >> > extends="ModelGlue.gesture.controller.Controller" >> > beans="environmentService,userService"> >> > >> > Am I doing something wrong? >> > >> > Thanks, >> > Nolan >> > >> > -- >> > 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 >> > >> > To unsubscribe from this group, send email to >> > model-glue+unsubscribegooglegroups.com or reply to this email with the >> > words >> > "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 >> >> To unsubscribe from this group, send email to >> model-glue+unsubscribegooglegroups.com or reply to this email with the words >> "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 > > To unsubscribe from this group, send email to > model-glue+unsubscribegooglegroups.com or reply to this email with the words > "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
