When you say "and it seems as if the replacing of those values does not work
when using parent bean factory." Does this seem to be a Model Glue thing, or
a ColdSpring thing?


DW

On Tue, Aug 30, 2011 at 11:31 AM, Scott Stroz <[email protected]> wrote:

> Well...I found a way around this. I added an <import> to the main
> coldspring.xml in sub app to pull in the main beans.xml file. This is
> how it was being handled in the main app.
>
> I had parent bean factory set to the instance of CS in app scope  -
> which needs to be there for other purposes - and it seems as if the
> replacing of those values does not work when using parent bean
> factory.
>
> On Aug 30, 10:19 am, Scott Stroz <[email protected]> wrote:
> > I am working on an app that has multiple sub-applications. One of
> > these sub-applications is sharing the same beans.xml file as the main
> > app. I have ColdSpring set up as the parent bean factory in index.cfm
> > of all apps (main & sub-apps)
> >
> > The beans.xml file has several references to 'dynamic' values for bean
> > properties like:
> >
> > <property name="environmentName"><value>${environmentName}</value></
> > property>
> >
> > And I have the following in index.cfm for all apps (main & sub-apps)
> >
> > <cfset ModelGlue_LOCAL_COLDSPRING_DEFAULT_PROPERTIES =
> > application.environmentProperties />
> >
> > In the main app, this works fine whenever I try to get the bean from
> > ColdSpring. However, when I try to get a bean from ColdSpring in any
> > of the sub apps, and it is a bean that has some 'dynamic' values, I
> > get an error. The error is "The value cannot be converted to a boolean
> > because it is not a simple value. "
> >
> > After doing some poking around, it seems this error is occurring
> > because the 'value' is still '${environmentName}' and not the value we
> > really want (like 'dev' for example). I have verified that
> > application.environmentProperties does in deed contain the correct
> > values, but it seems as if Model-Glue does not process these correctly
> > in sub-applications.
> >
> > Has anyone seen this before? Thoughts on how to get around it?
>
> --
> 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
>



-- 
Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."

-- 
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

Reply via email to