Entries Tagged as 'ColdFusion'

Todays' Ad

java.lang.Double cannot be cast to java.lang.String

ColdFusion , ColdFusion 9 2 Comments »

"java.lang.Double cannot be cast to java.lang.String" error you must face if you are previously using ColdFusion 8 and migrating to ColdFusion 9. For one of my client we were migrating from CF8 to CF9, mainly we faces issue related to ExtJs as CF 9 using 3.0 version which I can understand but above error really surprised me as this one is coldfusion error and I found nothing wrong in my code as that was working fine in ColdFusion 8. After googling on I found it was bug and Adobe has consider as hot fixes. 

Read more...

Nesting of CFLAYOUT creating problem with ColdFusion.navigate

ColdFusion , ColdFusion 9 3 Comments »

Today I came across problem with CFLAYOUT tag and ColdFusion.navigate problem. It was working in ColdFusion 8 but same code doesn't work with ColdFusion 9. Actually when I use simpler version it work fine in both 8 and 9 but when I use little complex CFLAYOUT then it doesn't work with CF9. Let me show you both example which work/not work with CF9 respectively.

Read more...

Upgrading from ColdFusion 8 to ColdFusion 9?

ColdFusion , ColdFusion 9 2 Comments »

If you want to updgrade from Coldfusion 8 to Coldfusion 9 on your server then think twice before doing this. If you are working on big project where you have widly used coldfusion ajax component and custumize and play with ExtJs function for enhance your ajax functionality then this will be nightmare for you to migrating to Coldfusion 9. Main reason behind this is ColdFusion 8 is using ExtJs 1.X as ajax/javascript function and in Coldfusion 9 Adobe has used ExtJs 3.0. Below is quotes from ExtJs site for migration from Ext 1 to 2.

"Unfortunately, because of the architectural changes in the new version of Ext, it was not possible to maintain full backwards compatibility. While the Overview will help get you oriented with the new code base, this guide will provide the practical steps needed to migrate your code as painlessly as possible."

Means you may need to look at your all pages where you have applied enhance ajax functionality and this what I am doing right now.I am playing with cfgrid, cflayout and cfwindow which I have widly used in our system.

I will keep posting about migrating from CF 8 to CF 9 for different ajax component.

cfmap tag for Google Map

ColdFusion , ColdFusion 9 1 Comment »

I really impressed with CFMAP tag in ColdFusion 9. It eliminates javascript code for google map api. Now google map integration is so easy that will finish in just two steps 1. Get google map API key for your domain. 2. Use CFMAP tag and render map in HTML page.

After getting API key we need to tell coldfusion about our MAP API key either by giving in cfajaximport tag or application.cfc file. You can specify api key in cfajaximport tag if you are want to use this in single page only but if planning to use google map in site wide then better idea to specify in Application.cfc. Below are both way to specify key.

<cfajaximport params="#{googlemapkey='ABQIAAAABvdd0PabCkL4zGc4TF1t6hT2yXp_ZAY8_uf....'}#" />
OR
<cfset this.googlemapkey="ABQIAAAABvdd0PabCkL4zGc4TF1t6hT2yXp_ZAY8_uf.....">

Read more...

&lt;br&gt; tag create seperate row in exported excel

ColdFusion 1 Comment »

Exporting data into excel sheet with HTML <br> tag creates separate row which really cause problem sorting excel column when there are multiple column. After doing lots of googling I found really simple solution which will line break in excel cell in spite of creating separate row.

Add following css definition in header section and it will solve your problem. 

<style>
    br {mso-data-placement:same-cell;}
</style>

Powered by Mango Blog. Design and Icons by N.Design Studio | Menu Apycom
RSS Feeds