I know this has come up with a few times before but its something I want to blog more for myself so I could easily refer to it when required.
By default, cfpop does not support ssl and if you are trying to access your gmail account via cfpop, you wouldnt be able to do so straight away because gmail requires you to access its mail server using ssl. There are a couple solutions around (which can be searched via Google) but the best I found was that you can force socketFactory’s class to use ssl (which is not the default behaviour).
Just add the following few lines of code before your cfpop tag call and that should do it! And dont forget to enable POP access in your gmail account first.
Here is an example of how to change the pageSize of an AJAX CFFGRID dynamically.
Purpose :-
Let the end user select how many rows of data he/she wants to see in the Grid. (ie technically speaking, change the pageSize on the fly).
Approach :-
1) Add a ComboBoxwith the number of Rows to be selected, for the user to be able to select. use the Ext JS functions to achieve that.
2) Take the value selected from ComboBox and reload the grid data.
3) Reload the paging Toolbar as well because, apparently, the grid data and paging toolbar work independently, reloading the grid does not reload the paging toolbar. So you have to do that manually.
4) Reconfigure the Grid. More »
After looking at Dan Vega’s series of posts on CFGRID usage, I decided to put together an example of CFGRID with a full CRUD functionality. ColdFusion 8 has introduced the new HTML format CFGRID which uses AJAX behind the scenes. I quite like the features it offers and I think with EXT framework behind the scenes, there are some nice things that can be done with it. Dan has already covered a lot of these areas and is doing a great job I think in writing these posts up. More »
In an attempt to do something with Coldfusion’s .NET functionality, I tried to consume any existing .NET component to do something useful with it. Ideally, in order for this exercise to be really termed as useful, I should have been writing my own .NET component and then consume it in CF, but I would leave that exercise for later on, given the fact that my .NET skills are not so good and I haven’t really done a lot of .NET except a few tidbits here and there.
So, having said that, I decided to do something with Excel and started looking for a publicly available .NET component for Excel. Although there are a lot of ways to do that already, via CF, as described by Charlie Arehart (which happens to be a really informative list), I still wanted to do it via a .NET component just for the sake of doing it.
More »
The issue is really weird. What’s happening is that whenever <cfdump> tag is used anywhere in the code, it throws an error like this.
Permission denied for creating Java object: coldfusion.util.DumpHelper. Access to Java objects in the ColdFusion package has been disabled by the administrator
The server is CF8 with access to internal Java Objects disabled. I have checked all the application.cfm files that can possibly be called and there are no Java objects being used anywhere. It might be worth mentioning that there is a CFC which is being used on the server which uses some Java objects but those Java objects are not the CF’s internal objects, so that should be fine and that CFC works just fine when called.
I have spent a few hours trying to figure this out and I am at a loss as to what’s going on with <cfdump> here. I have tried to reproduce the error to get to the bottom of it but there is no consistency in its behaviour. Here is what I did :-
- Keep the access to Java Objects disabled and restart CF.
- Create a Java Object that uses internal CF object and get a ‘Permissions denied’ error as expected.
- Now comment that line of code which uses the internal CF object, and use a simple <cfdump> tag that dumps any var.
- Unexpectedly, It would throw the error I stated above (not always though - it did this just once, the first time)
- Enable access to internal Java objects and the error is gone, as expected.
- Disable the access again and you might see the error again.
- Repeat the whole exercise and you might see the error thrown by cfdump at Step 4.
Anyone came across this issue ever? Any info would be appreciated. This is a very useful tag and is used all the time while coding and its a big issue when it doesn’t work.
I have been looking for these little gems recently and everytime I happen to find something new. Although, I dont blog about everything I find, this one is worth it I think.
Normally in order to validate an IP address, we would use some kind of regular expression but Coldfusion has an inbuilt class for validating IP addresses. Both the v4 and v6 addresses. Not an IP expert, have a look here for an explanation of what they exactly mean. So, here is the code :- More »
I was asked this question last night by someone who had recently upgraded from CF5 to CF8. Coldfusion suddenly started throwing these errors on almost all the websites on the server.
“corrupt table null”
There was no consistency in how the errors were being thrown, in a way that refresh the page and error is gone and refresh the page and there it is again. A restart of CF would help for a few hours but then the error would come again. More »
Just found this little thingy which according to me is quite impressive.
Now what that does is takes a file from your local folder and applies colored coding to it. Not the best colored code but a lot better than the heavy Regular expression.
Try it out !
Everything that Coldfusion does, is bascially Java under the hood, this is something almost everyone using Coldfusion would know. I have always been curious to find out more about this (basically to find out what more we can do by making use of this). Recently, I read some blog posts on how we can use Java Reflection to find out more about what Java object, each CF object is mapped to under the hood. So, I decided to do some of this as well and I choose cfquery. More »
This is yet another example of how native .NET objects can be easily consumed from Coldfusion 8. Recently, I have been spending some of my time on this particular aspect of Coldfusion 8, as is obvious from some of my posts. For those who are not aware, Coldfusion 8 supports calling .NET objects simply by using the CFOBJECT tag or the CreateObject() method. You need to pass in the .NET assembly (ideally a .dll file) and the class of that assembly, as parameters to the CFOBJECT tag. By default, mscorlib (which is a .NET core assembly) is always included so there is no need to specify that if the class you are using happens to be one of the classes from this assembly.
More »