No they won't filter down, but you can pass your config struct to ModelGlue
and it will then pass it into its internal factory as the defaultProperties
argument by including this in your /index.cfm
<cfset ModelGlue_LOCAL_COLDSPRING_DEFAULT_PROPERTIES = application.config />
That should solve the problem as long as you only need to set complete
values, by that i mean you can do this
<property name="debug"><value>${debug}</value></property>
but you couldn't do this
<property
name="configurationPath"><value>config/ModelGlue-${mode}.xml</value></property>
you do need the DynamicXmlBeanFactory if you want to do partial replace on
strings
On 19 July 2011 13:24, Rawlins <[email protected]> wrote:
> Hi Chris,
>
>
> Thanks for coming back to me.
>
>
> I see about the default values. But what you're saying is that It's not
> likely to filter down into the ModelGlue factory, which probably won't help
> me when wanting to set dynamic values in the modelglue.modelGlueConfiguration
> bean will it?
>
>
> I did try to trick model glue, by giving it an empty XML file to import,
> and including the model glue configuration as an import in my main
> coldspring config file.
>
>
> Which meant there wasn't an error thrown on init, but model glue wasn't
> properly loading an orm adaptor when I was doing that, which obviously broke
> any of the generic orm calls I have.
>
>
> <cfset ModelGlue_LOCAL_COLDSPRING_PATH = expandPath(".") &
> "/config/coldspring/empty.xml" />
>
>
> Thanks,
>
>
> Robert
>
> --
> 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