?
Solved

Do you have to pass variables as hidden fields in CF FW1 form?

Posted on 2014-02-13
1
Medium Priority
?
596 Views
Last Modified: 2014-02-23
I have a 3-page form. This is my first time using FW1 model. I thought declaring variables as rc.variablename in my controller would carry the variables from page to page but they don't appear to. Do I really have to pass as hidden input from page to page?
0
Comment
Question by:traport
1 Comment
 
LVL 4

Accepted Solution

by:
Rodrigo Munera earned 1500 total points
ID: 39870396
Declaring variables in the framework allows other objects within that framework to access the value of those variables, think of those variables set in FW1 as "global" variables that can exist outside of the object. The whole premise of FW1 in OO programming is that your code is encapsulated in beans so any variables defined inside that bean are not available to the code outside, setting request variables makes those variables available to other objects without having to explicitly pass them outside of the object and having to create an argument input in another object or method, but it all ends when the request ends (after the page has finished loading).

If you want your data to persist through several requests (page loads) you can use your session scope, or pass the data from one page to another using URL or form variables.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
Screencast - Getting to Know the Pipeline
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question