Inherited a CF9 site that uses Fusebox 5, Coldspring and CFUnit. I've set the mode in fusebox.xml.cfm to:
<parameter name="mode" value="development-circuit-load">
However my CFC files seem cached (all cache options in CF admin are unchecked).
So I added the following parameters to the URL:
&fusebox.password=*****&fusebox.load=true&fusebox.loadclean=true&fusebox.parse=true
The above parameters do cause the changes I make to a CFC to be "picked up" and not cached. Which is what I want. But it's making loading the page much longer.
Is there a way to refresh changes made to a CFC faster (while using Fusebox 5 & Coldspring)?
I'm a Fusebox 5 & Coldspring newbie, so please provide an ABC step response if you can :)
Related
I have a few related selects that work perfectly on a testing server with very loose security (basically just a simple default install of CF 10).
I have tried to implement the CF 10 lockdown guide on the production server and all seems well, except that related select don't work. That is, the first select in the chain doesn't populate and therefore, none of the related selects populate either.
I even recreated Ben Forta's art media example: perfect on the testing server, no triggering in production.
All other CFC functions seem to work: SELECT and INSERT queries are just fine. Only CFSELECTs with bindings are hosed. I pretty sure that the problem is a server configuration. The same pages worked just fine on our old CF 9 box. Any ideas would be helpful.
My advice to you would be to NOT use cfselect or any other UI stuff in ColdFsuion - It only causes more headaches than it gets rid of.
That being said, if you followed the lockdown guide, you should have limited access to the CFIDE directory - which is needed for any of the ColdFusion UI stuff. There is an option in CF Admin to use a 'custom' path for the scripts ColdFusion uses - it is on the main Settings page. Set this value and create a virtual directory in IIS with the same name pointing to the {cfroot}CFIDE/scripts directory.
I currently have an application which always makes a request to a page with a '.data' extension every time it opens. This application is currently released to the public and people use it, and I want to see how many people use it. To do this, I am taking the approach of just counting how many times this page is downloaded. I want to use Google Analytics, but I cannot get javascript/html to run on this page because it has a 'data' extension (random).
Is there anyway I could get some javascript to run, or somehow count the amount of times this page is downloaded without having to change my current application and update it to make a request to a PHP page? Also, I've tried redirecting the page with the .htaccess to a PHP script, and my application that is currently public won't follow the redirection.
Any reason you can't change put the following in your Apache configs?
AddType text/html .data
We need to incorporate coldfusion pages into a DotNetNuke site. Example, a login page, consisting of a simple login form. OnSubmit, a coldfusion cfc webservice is called to check the credentials, returning a success flag. I am brand new to DotNetNuke and don't even know if this can be accomplished. Googling reveals next to nothing, which probably isn't a good sign. If anyone can provide a real simple example of how to do this, I would be extremely grateful.
The easiest way to do this would be to use the IFrame module in DotNetNuke, if you don't have the IFrame module available check out the Host/Extensions page, and click on the Available Extensions option.
Your cold fusion pages will have to reside somewhere else, but within the IFrame they can be loaded into a DotNetNuke website.
Long term you would likely be served best by rewriting that functionality inside of a DotNetNuke module, or finding a module that provides the same functionality.
I am modifying an existing web application which has been coded in Coldfusion. In the existing code, a large portion of the folders contain an Application.cfm file which sets the Application variables
However, part of my modification to these apps requires me to use the Application.cfc rather then the existing .cfm file.
Is there any potiential problems of having both of these files in the same directory? Or will Coldfusion default to using one over the other (or will it run both?)
Thanks,
Steven
EDIT
Just to shine some more light onto this. I am integrating a new centralized login system, but a caveat of this is that it must have a fall back login (in case of downtimne for login system). That is why i dont want to blow out the old code
If there is an Application.cfc file ColdFusion will use that. If you have both, Application.cfm will be ignored.
I am trying to migrate from CFMX 6.1 to Railo 3.1.
I have custom tags in this directory for CFMX 6.1
C:\cfusionmx\customtags\myapp
I copied the directory to
{railo-web}/customtags/
and added this mapping through the Railo administrator and also enabled the "Search subdirectories" setting.
I get this error the moment I try to access a page that calls anything from this directory:
invalid component definition, can't find mycfc
My Railo installation is deployed through GlassFish v3.
I see the error the moment this script is loaded:
<cfscript>
mycfcinstance = createobject("component","mycfc");
</cfscript>
In the legacy app that I try to migrate, a lot of CFCs have been stored in CFMX 6.1's customtag path.
First of all, Railo simply does not support search for CFC's inside the Custom Tag directory. Seems that it will, one day.
Second, it looks like small misunderstanding the meaning of the Railo CFC-based custom tags, which you can manage using that "Archives & Resources > Custom Tags" page in Admin. You can find more about it in Railo's blog, for example in these posts: part one and two.
As for the Railo workaround for this legacy app, I couldn't find the way to imitate desired behaviour.
It can be inappropriate, but maybe you will end with batch-replacing
createobject("component","components.
with
createobject("component","
and creating mapping in the Application.cfc or Admin.
So, if you want to put cfc somewhere in the application root.
this.mappings["/components"] = getDirectoryFromPath(getCurrentTemplatePath()) & "components";
Yes, it's not really matches your problem, just an example.