Interesting bug with Application.cfc and mappings and the Application constructor

A few years ago I wrote a small component for ColdBox that actually allowed me to modify the Application settings, specifically the ORM settings and cfclocation. There was nothing special to this component and I had it working for sometime, that was until I moved ColdBox away from the root of the application and used per application mappings instead.

Which is when I discovered something very interesting with Application.cfc and the constructor.

update to using tool tips in CFgrid

In a previous post that I wrote on this, which can be found at http://www.andyscott.id.au/2009/7/21/Have-you-ever-wanted-to-use-tooltips-in-cfgrid, I showed how to add tool tips to the CFgrid.

A user wanted to know how to get the information from the cell, and although you can see how he did it in the comments, I will not recommend doing it this way. The reason being is that in the future, you may start to apply formatting to the cell. Which would then make the method this user used, obsolete, but more importantly broken and looking at fixing the code.

So what is the best way to achieve what he wanted?

Setting up and using Resource bundles in ColdBox

I was asked the other day for some examples on using resource bundles inside ColdBox, and even though it is rather easy to use and setup, I thought I would do a very quick post on how easy it is.

ColdBox 3.0+ and sending emails whether in production or development.

As this question comes up a lot, I thought I would blog about this some more. ColdBox is brilliant when it comes to doing things by convention, and minimising our work, and emails is no different. However one of the main problems that comes up a lot is how to send emails to developers, rather than to the real recipient of the email while in development.

ColdFusion and Remote Calls and notifying the caller of the problem

I want to touch on a subject that I know that not many people actually take into consideration, and that is how to deal with errors and other problems on the server when being called by a remote client call.

I am going to state that I am defining any call made as either a web service, remote procedure call, rest calls that is either from a client like a JavaScript call or even Flash, Flex or anything else.

So how do we handle them, should we report them to the caller or should we just log the call somehow on the server.

Blog about how I got started in ColdFusion

In the early nineties I had just come back from overseas, working for a games company called Probe Software, and upon returning I was looking for a new direction in life. I had an itch in Computer Aided Art and Design at that stage, and looked for a course that would offer some formal training in this area. The course was more about Graphic Design than it was about CGI as we know it, however I did as much of the course as I could before the money ran out and deferred the course.

After getting a job in the Graphic Design and Print industry for a small while, I had the opportunity to get some exposure to database driven applications at that time, developing in perl and postgress or was it informix databases on a unix system. The job was actually a newly created position for me, as I wasn't and still don't consider myself a Graphic Designer at any stretch. And the role would have included a new project that the company was working on at the time, the project was also very new and nothing like it was even on the market at that time.

Is your ColdFusion Application truly mobile device aware?

One of the things that really annoys me the most when browsing a site that detects that you are on a mobile device, is the fact that most ColdFusion sites I have visited that do this, are using cflocation to redirect you to the mobile version.

The problem here is that when you browse the site in your mobile device, the first url is loaded and then redirected to a second URL. When you then try to use the back button you will end up in an endless loop here, and don't get me wrong here if you are quick enough on your mobile device to continuously hit the back button you might be luck enough to break out of the redirection loop.

If your application is using a cflocation to redirect the user, then you can be almost certain that the user will get annoyed with the site. My suggestion if you want to make your users happy to browse your mobile version, to avoid using cflocation for mobile devices.

ColdBox and automatically loading interceptors for modules within your application

In the last few years I have been working on a fairly largish project in my spare time, and I was getting a little tired of registering all my interceptors in the configuration each and every time. I thought to myself that there had to be a better way than this.

After thinking about this for a long time I came up with the following solution.

ColdFusion builder V2.0 and my thoughts on its success for the future.

It is no secret that Adobe has been hard a t work trying to get ColdFusion Builder 1.0, in as many hands as possible. By bundling it with Flash Builder and the Enterprise version of ColdFusion 9.0, to even giving away a lot of copies to push the product out there into the market.

But I feel that Adobe hasn't done enough in the right places, to make those that already have either purchased the product or given a free copy, have any confidence in the product to date.

Migrating over to ColdFusion 9 and some things that have tripped me and maybe you too

In the last few months I have been slowly migrating our Application over to ColdFusion 9, I already knew some of the sort comings but some of them well caught me off guard.

The number one thing I have learned was that with any version, you should always scope your variables. Don't think for a moment that if you take the shortcut of not putting variables in front of your variable that it will work either. ColdFusion 9 introduced a new scope called local, that just seemed to cause some very weird issues with us.

Problems with CFAjaxProxy and migrating over to ColdFusion 9, what you need to know

A little while ago I posted about this problem and after digging into it further, found here ColdFusion and debugging ColdFusion 9 Ajax calls with the line debugger. Since then I have done a bit more digging around and found that for some reason in ColdFusion 9 there is an extra URL paramter being passed via the AjaxProxy.

ColdFusion and what is a ValueObject as Flex developers seem to not know

It seems that somewhere some how someone quoted in the ColdFusion world, what a Value Object actually is by their definition. Since then the term has taken of in the Flex world like wild fire, and yet every time I ask these people what they think a Value Object is, they actually get it so wrong that it is not funny.

Nine times out of ten when these people are asked their answer are actually describing what we call Transfer Objects, and yet how does something like this exist and yet be so far wrong in the Flex world?

ColdFusion and how to get the information about your HardDrive aka getFreeSpace()

I saw a tweet this morning about ColdFusion and getFreeSpace() and what surprised me was the responses from people about this tweet, I am of the believer that one doesn't need to keep introducing features into ColdFusion when it is not needed.

And from what I can tell this is something that people are seeming like wanting, and I don't know why.

ColdFusion Guidelines/Standards what works for you and why

Today we had an interesting discussion on this very subject, now we already have one in place. Yet we have varying opinions on why we should do something, but nothing really concrete as the real truth as to why it should be this or that way. I personally have grown to love the fact that the beginning of a block is on the same line as the method, component class or loops etc. My logic behind this is that it is neater, doesn't clutter the workspace and fairly easy to read.

However my logic just doesn't end there.

ColdFusion and how to turn your forms into an ajax request with ExtJS core

Although I have used the freely downloadable core version of ExtJS for the example, one can certainly use and leverage of the existing ExtJS that is bundled with ColdFusion to do this as well.

On a project that I am currently working on I have the desire to use as much ajax as possible for this project, the reason being is that I personally hate to refresh an entire page just to make small changes to a page.

I have been working on this project for a few years and yes, my current blog is actually running a very early version of this application. In my design I want to turn a normal form into an Ajax form and not have to have the look and feel that comes with using the ExtJS widgets form.

This is actually easier than I thought it was.

ColdFusion and setting Focus on FORM field in CFDIV or CFWINDOW

I wanted to write about this because I read on another blog how he does it, and I am really surprised about it because it isn't the right way to do it.

I did try to contact the author as you can't post to his blog, nor can you contact him via is website. So I thought it would be best to explain why he is wrong here.

ColdFusion 9 and how to change the colour of the row in a CFGrid

A user asked the question on a mailing list today on how would you go about changing the colour of a grid row, if the date is less than 2 weeks away.

Seeing as this is something that is not really mentioned much anywhere, I thought I would write a quick blog to show how.

ColdFusion 8 trying to catch a web service error and a problem one should be aware of

While writing some code today I ran into a problem that I thought I would share, and I doubt it could be said to be a serious problem, but a problem none the less.

I spend a good deal of time trying to find why a web service was that was failing on instantiation, was not actually being caught by a normal try / catch block.

I would also put this down to a bug in ColdFusion as well.

Installing ColdFusion 8 on ColdFusion 9 Multi Server instance with IIS Connection

I wanted to quickly talk about a problem I ran into with installing ColdFusion 8, as a new instance running under ColdFusion 9 as the underlying application install and using the JRun connector to connect this to an IIS website.

ColdFusion 8 and turning of column header moving

I wanted to blog this as I have done it before, and quickly forgot how I did this. So for others who might google a solution, then at least there will be something to find.

More Entries