I want my generated view files to be written to views/generated, so I
changed my Coldspring.xml file like so:

<property name="generatedViewMapping"><value>views/generated</value></
property>

This works for the writing of files: they do get written to that location.
However, when I try to run a scaffolded event, MG cannot find my view files.
 I get a message like:

The template (List.Province.cfm) was not found in any registered view
mappings (/views).
OK, so I manually added /views/generated to my view mappings in my
Coldspring.xml like so:

<property name="viewMappings"><value>/views,/views/generated</value></
property>

and now it's all working as expected.

However, the documentation at
http://docs.model-glue.com/wiki/HowTos/HowToUseScaffolds/CustomizingGeneratedCfml#Scaffolds:CustomizingGeneratedCFMLseems
to suggest that I should not have to manually add that folder to my
viewMappings. It says:

"Scaffold tags cause certain files to be generated, such as lists, views,
and edit forms. This generated code is placed into a directory governed by
the ScaffoldPath property of the ModelGlueConfigurationBean in
ColdSpring.xml.

*Advanced note: The value of this setting is appended to the ViewMappings
setting, making this directory the last-searched directory when an include
tag is encountered."*
*Now that statement is already inaccurate (I believe) as it is the
generatedViewMapping setting, not the scaffoldPath setting that determines
where the files will be written, but the note following it does seem to
suggest that the path I specify will be added to the viewMappings
automatically.*

*So, is this a bug, or just a misunderstanding on my part?  And if the
latter, does it still seem like a good feature to add?*

*Cheers,*
*Bob*

-- 
Bob Silverberg
www.silverwareconsulting.com
-- 
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