Greetings,
Thanks for the quick replies Mark and Chris,
I'm on MG3, and added the following to the controller component:
<cfcomponent displayname="registrantController" output="false" hint="I
am the controller for Registrant."
extends="ModelGlue.gesture.controller.Controller" beans="AppConfig">
I then tried the following,
<cfset theSystem = beans.AppConfig.theSystem />
<cfset theProtocol = beans.AppConfig.theProtocol />
and got this error:
Element APPCONFIG.THESYSTEM is undefined in BEANS.
What did I miss here.
Thanks for any help,
Cliff
On Mar 22, 8:45 am, Chris Blackwell <[email protected]> wrote:
> Hi Cliff,
>
> In your controller add the beans annotation to the component
>
> component extends="ModelGlue.." beans="AppConfig"
>
> ModelGlue will then inject your AppConfig into the controllers beans scope
>
> function doSomething(event) {
> var someSetting = beans.AppConfig.someSetting;
>
> }
>
> Chris
>
> On 22 March 2012 13:34, Clifford Moon <[email protected]> wrote:
>
>
>
>
>
>
>
> > Greetings,
>
> > I have the following bean defined within my coldspring.xml file.
>
> > <bean id="AppConfig" class="ModelGlue.Bean.CommonBeans.SimpleConfig">
> > <property name="Config">
> > <map>
> > <entry key="AppTitle"><value>Event
> > Management</value></
> > entry>
> > <entry
> > key="dsn"><value>webapps</value></entry>
> > <entry
> > key="mssql_dsn"><value>internetservices</value></entry>
>
> > </map>
> > </property>
> > </bean>
>
> > Is there any way to access the entries of this bean from within the
> > controller?
>
> > Thanks,
>
> > Cliff
>
> > --
> > 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
--
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