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