Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Loading ColdSpring and ModelGlue configurations dynamically

New Here ,
Jul 19, 2009 Jul 19, 2009

Hi all,

I am trying to load the configurations of coldspring and modelglue dynamically using one environment.xml.cfm file, so that i dont have make changes at multiple places but at only at one.

Attached are my three files

1- environment.xml.cfm:

2- application.cfc

3-portalConfig.cs.xml (the file in which i want the values to be loaded dynamically)


Please, see the code of these files.

If I dump the values, in application.cfc, I get the correct dynamically loaded values for ColdSpring (i.e. values for properties of portal.config.cs.xml. For example for intranetId, i get 10 ) but when I try to access it somewhere else (e.g in Controllers) it returns the strings (like ${intranetId}) instead of values (like 10, defined in environment file).

Can anyone plz help me out here.

I already have gone through http://bears-eat-beets.blogspot.com/...odel-glue.html.

456
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 20, 2009 Jul 20, 2009
LATEST

Hi,

I would advise posting this question (if you haven't already) to the Model-Glue Google Group. You're using a still-in-beta version of that framework and, my guess, is that you'll have far better luck working through the issue on that group's site, since there would be far more Gesture (Model-Glue 3 Beta 2) users on that group than this forum. In the past, I always had good luck with answers to framework-specific questions like this within the confines of the respective framework's community.

In case you didn't have the Model-Glue group URL (I didn't see a post from you today on it, so wanted to send to you just in case):

http://groups.google.com/group/model-glue

Good luck,

Craig

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources