I'm trying to use the GetPageContext().forward() method in CFMX 7 and it
doesn't seem to be passing any scope other than the Request. The Form scope
is coming up blank. I know this was an issue in CFMX 6, but then was fixed.
However, I'm running the following templates on my CFMX 7 Developer Edition
(which might be the problem) and the FORM scope is coming up blank:
-- forward_1.cfm --
<form action="forward_2.cfm" method="post">
<input type="text" name="myField" value="Some data" />
<input type="Submit">
</form>
-- forward_2.cfm --
<cfscript>
Request.test = "forward info";
GetPageContext().forward("forward_3.cfm");
</cfscript>
-- forward_3.cfm --
<cfdump var="#request#" label="request">
<cfdump var="#form#" label="form">
When I run this code, the form scope dump comes up blank. If I change the
"action" attribute to point to the forward_3.cfm template, I get the expect
results.
I'm trying to fix some code that was using CFHTTP to call a local template,
but I need the form scope information.
Does this code run for anyone else?
-Dan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235491
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54