generateEvent.cfm

35 views
Skip to first unread message

Len Engel

unread,
May 4, 2012, 12:09:33 PM5/4/12
to model...@googlegroups.com
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. 

Ezra Parker

unread,
May 4, 2012, 1:07:49 PM5/4/12
to model...@googlegroups.com
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:


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


--
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 model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Len Engel

unread,
May 4, 2012, 2:29:18 PM5/4/12
to model...@googlegroups.com
Ezra

Thanks for the help... making progress

The error I am getting now

984ms Views Rendering view "main" (generateEvent.cfm)
  <include name="main" template="generateEvent.cfm" /> 
1513ms Exception
struct
column 2
detail Problem occurred while parsing: Syntax error at line 24, column 23. Encountered: "=" after : "<"

I should have added in the original question that I am on CENTOS running Apache and Bluedragon JX 

Dan Wilson

unread,
May 4, 2012, 3:25:42 PM5/4/12
to model...@googlegroups.com

Looks like a syntax error. What is the source code around the reported error?

DW

--

Len Engel

unread,
May 4, 2012, 4:47:39 PM5/4/12
to model...@googlegroups.com
Yes that is what is being reported on the error page...  Just not sure where to look, and not sure where to look for the "source code" you are asking about.

Again, I am new to this but it seems to be breaking just after </cfsilent> in generateEvent.cfm  typeSelect.  The arryLen = 1

Thanks for the help guys.  Gov'ment says I get full social security tomorrow, so trying to get this working as my first b'day present.  :-)

For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Len Engel

unread,
May 7, 2012, 10:26:04 AM5/7/12
to model...@googlegroups.com
Could this error be caused by permissions?  

Ezra Parker

unread,
May 8, 2012, 2:03:34 PM5/8/12
to model...@googlegroups.com
No, shouldn't have anything to do with permissions. At what point in the process did you encounter this error? (E.g., did the event generation form load, and this occurred when you submitted it, or it didn't load at all?)

From the error message, it looks to me like the problem is an occurrence of "<=", which evidently causes an issue for BlueDragon JX. This string is a "token" that is used in the generation pattern used to insert CFML comments that aren't parsed at generation time, and is replaced by the correct comment syntax ("<!---") as the file is generated.

This works fine in Adobe ColdFusion, so to be completely honest, I don't think it's something we're likely to change in the framework in order to support other CFML engines. That said, it actually is possible to override the core Model-Glue component with a custom one, and thereby implement your own fix for the issue.

I will see if I can whip something up along those lines in the next week or so and get back to you.

--
Ezra


Len Engel

unread,
May 9, 2012, 1:03:57 PM5/9/12
to model...@googlegroups.com
No, the form does not load...  Error occurs immediately after line 34 of generateEvent.cfm
Reply all
Reply to author
Forward
0 new messages