There are few steps not included in Erza explanation. Please allow me to
share:
After following her steps:
1. Open config/ColdSprings.xml
2. Make sure viewMappings looks like this:
<property
name="viewMappings"><value>/PlantOMatic/views,/PlantOMatic/views/generated,/modelglueextensions/modelglue</value></property>
3. Add:
<property
name="assetsMappings"><value>/modelglueextensions/jQuery,/modelglueextensions/modelglue</value></property>
, you must:
1. Map the folder modelglueextensions using the CFIDE administrator:
http://localhost/CFIDE/administrator/
2. Open ModelGlue/gesture/configuration/ModelGlueConfiguration.cfc
1. Paste the following code:
<cffunction name="setAssetsMappings" returntype="void" output="false"
access="public">
<cfargument name="assetsMappings" type="string" />
<cfset variables._instance.AssetsMappings =
listToArray(arguments.assetsMappings) />
<cfif not len(getGenerationViewPath())>
<cfset
setGenerationViewPath(listFirst(arguments.assetsMappings)) />
</cfif>
</cffunction>
<cffunction name="getAssetsMappings" returntype="array"
output="false">
<cfreturn variables._instance.AssetsMappings />
</cffunction>
I got to the point where I can see the form Event Generation Settings. I
haven't test to use it yet but at least I am not stuck yet.
Should this be an error to be reported?
On Friday, May 4, 2012 1:07:49 PM UTC-4, Ezra Parker wrote:
>
> Hi Len,
>
> The event generation feature has changed a bit since the training
> materials were put together -- in order to get it up and running, you'll
> need to add a couple of things to your ColdSpring.xml configuration file.
>
> 1. Add /modelglueextensions/modelglue to your viewMappings, so this
> configuration value should look something like this:
>
> <property
> name="viewMappings"><value>/myApp/views,/myApp/views/generated,/modelglueextensions/modelglue</value></property>
>
> 2. Add an assetMappings property:
>
> <property
> name="assetMappings"><value>/modelglueextensions/jQuery,/modelglueextensions/modelglue</value></property>
>
> (This needs to be somewhere within the modelglue.modelGlueConfiguration
> bean, so right after the helperMappings property would work.)
>
> Also, the new version of this functionality is dependent upon some CSS and
> JavaScript files that are found in the modelglueextensions directory, so
> make sure that it is web-accessible at the /modelglueextensions URL. In
> other words, if you are hitting the site at http://localhost/myApp/, then
> you need to be able to reach the directory at:
>
> http://localhost/modelglueextensions/
>
> The updated event generation functionality is not documented yet, but
> hopefully should be fairly intuitive. Please post back to the list with any
> questions you have or problems you encounter.
>
> --
> Ezra Parker
>
>
> On Fri, May 4, 2012 at 9:09 AM, Len Engel
> <[email protected]<javascript:>
> > wrote:
>
>> I am new to model-glue so working through the Training Section. Have
>> gotten as far as Section 7 -- I am getting a error
>> The template (generateEvent.cfm) was not found in any registered view
>> mappings
>>
>> Any assistance would be greatly appreciated.
>>
>> --
>> 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]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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