Skip to main content
Participant
November 1, 2019
Answered

Coldfusion 2018 update 2 broke CFWindow center="true"

  • November 1, 2019
  • 1 reply
  • 1122 views

I spent a couple days struggling with this and felt I needed to share with the community.

 

I've been running CF 2018 locally for a while, but the production server (internal website only) was CF 11. I was pretty confident that I had addressed all the version differences because I'd been using it locally, so I finally got my ducks in a row to purchase the upgrade for production and rolled it out this week. Shortly after deploying the new server, users started complaining about popup windows not working correctly. We had a handful of CFWindow tags that were modal="true" and center="true". When the user clicked the link that called ColdFusion.Window.show('windowname') the screen would go grey (modal) but the window was not popping up cented in the viewable area, sometimes ending up off the bottom of the page (esp. when viewed on mobile devices), and they thought their web page had locked up.

 

After a day and a half of flailing, I determined the underlying issue and backtracked to find that Update 2 https://helpx.adobe.com/coldfusion/kb/coldfusion-2018-update-2.html (which I applied immediately to the new production server when I built it, but only applied locally in the last couple of weeks) had done this:

  • Updated the following OEMs:
    • ExtJS 6.6.0.258 for AJAX UI components

 

The CFWindow tag is tied to this ExtJS library, and the update changed the way it works. I don't know specifically what changed or why it was broken, but my solution was to replace the whole library with the previous version (4.x). 

 

The next step for me will be to rewrite all the old code to replace the cfwindow tags with something else, but this was my quick fix.

 

Hopefully this post helps someone else and keeps them from googling in vain for days like I did.

This topic has been closed for replies.
Correct answer BKBK

Hi glazeddoughnut, thanks for sharing your experience with CFWindow with the forum. In fact, for some years now, the ColdFusion community discourages the use of ColdFusion tags to generate User Interfaces. The feeling, by and large, is that you should leave UIs to the specialists, Javascript Libraries. So my advice would be to replace ColdFusion's UI tags with the corresponding Javascript functionality

1 reply

BKBK
Community Expert
BKBKCommunity ExpertCorrect answer
Community Expert
November 2, 2019

Hi glazeddoughnut, thanks for sharing your experience with CFWindow with the forum. In fact, for some years now, the ColdFusion community discourages the use of ColdFusion tags to generate User Interfaces. The feeling, by and large, is that you should leave UIs to the specialists, Javascript Libraries. So my advice would be to replace ColdFusion's UI tags with the corresponding Javascript functionality

Inspiring
November 3, 2019

This, sadly, is for various reasons not possible as the developer wishes 😞

No idea if this functionality is widely used. Stumbled over a website that used this recently.

BKBK
Community Expert
Community Expert
November 4, 2019