jquery and mach-ii

2 views
Skip to first unread message

jarthel

unread,
Jul 3, 2009, 1:01:34 AM7/3/09
to Mach-II for CFML
I have a very simple page (http://www.pastebin.ca/1482646). This HTML
code was from a "view source code" of a mach-ii event that displays a
form. I also created a new "test.cfm" file using the HTML as its
contents. this test.cfm is outside of mach-ii or any framework. It is
located in a test folder in my webroot.

If I pressed "submit" (using mach-ii version), line 40 in the HTML
code above will be displayed thrice. In all the 3 instances, the value
of tempCounter stays the same.

If pressed submit on my standalone test.cfm, line 40 will be displayed
only 1 which is correct.

Any idea on what is happening on the mach-ii version?

thank you very much for the help :)

jarthel

unread,
Jul 3, 2009, 2:36:35 AM7/3/09
to Mach-II for CFML
did some investigation:

this is mach-ii.xml entry that displays the form
++++++++++
<event-handler event="showApplicationFormPartANew" access="public">
<event-arg name="application_id" value="0" />
<notify listener="applicationsListener"
method="retrieveApplicationPartA" resultArg="applications" />
<view-page name="partAForm" contentArg="content" />
<execute subroutine="pageLayoutWithLeftnav" />
</event-handler>
+++++++++++

if I remove the execute subroutine line, it works fine.

These are the contents of the subroutine:
+++++++++++++
<subroutine name="pageLayoutWithLeftnav">
<view-page name="layout" />
</subroutine>
++++++++++++++

layout: <page-view name="layout" page="/views/layout.cfm" />

layout.cfm contents: <cfoutput>#event.getArg("content")#</cfoutput>


jarthel

unread,
Jul 3, 2009, 2:42:29 AM7/3/09
to Mach-II for CFML
I forgot to say that the subroutine I'm using is exact (exact for
names and the news notifier is not present in my version).

I'm beginning to think the only solution to not use "subroutines" and
just have the entire "layout in the form file (in my example, it would
be "partAForm".

thanks again :)

Reply all
Reply to author
Forward
0 new messages