Tuesday, July 30, 2013

ExtJS multiselect problem when shift click to select entries


IE  10; ExtJS 4.1


I am using ExtJS "multiselect" control. When trying to select multiple rows using Shift+Click, I'm getting a messy screen (Figure 1). The data behind the scene is correct, but the look is disturbing. Ideally, it should look like Figure 2. 
Figure 1. Screenshot showing the problem

Figure 2. Screenshot showing the expected behavior


Solution to this problem is relatively trivial, but not obvious. Just add the following attribute to the multiselect control, you will get behavior like Figure 2. I found the solution by looking up example hosted on Sencha web site, and found the only difference is in this "ddReorder" attribute. Once it's added, the selection behavior is as expected. Drag drop reorder is harmless for what I am working on.
ddReorder: true 

Friday, July 19, 2013

Adobe Flex RSL Error in IE

This is another case which I know the cause and the solution for a problem. But I don't understand why it would cause a problem.

  - IE10, Win7, Flash Player 11.8 debugger
  - Google Chrome  28.0 with Flash Player 11.8

  Flex application stopped  working in IE. Always getting this error message: "RSL Error 1 of 2". RSL is short for Runtime Shared Library. Using ServiceCapture, I do see the main SWF loaded, and the first RSL loaded, but no the rest.
  The same Flex application works perfectly in Google Chrome.

  In the the IE Security setting, "Enable Protected Mode" is unchecked.

  Go to IE > Tools > Internet Options > Security, make sure "Enable Protected Mode" is checked. Then restart IE. Voila, it all works again. In retrospect, I might turned it off when I was trying to set up Selenium test framework.

  It's still beyond me why "Protected Mode" seems to make IE 10 more compatible. Just a few days back I had another problem with Office Web application due to the exact same cause. An extra IE windows will always popup when I open an Office 2013 application in Excel. The problem is gone after I enabled protected mode.

Flex: a RIA web application development framework based on Adobe Flash technology

Tuesday, July 09, 2013

Upgrading Coldfusion 9.0.0 to 9.0.1 with HotFix 2

Instructions from Adobe are not clear or simply wrong sometimes.
Here is actual steps I took:
Environment: Windows XP, CF 9.0.0 Server Installation, IIS

  • Update Coldfusion from 9.0.0 to 9.0.1
  • Apply Cumulative Hot Fix 2 | Coldfusion 9.0.1 (http://helpx.adobe.com/coldfusion/kb/cumulative-hot-fix-2-coldfusion-1.html)
    • Download and extract files:
    • Go to your {ColdFusion-Home}/lib directory and make a backup of lib folder (I just copy and paste the folder in the same place)
    • Apply update JAR file
      • In the ColdFusion Administrator, select System Information page by clicking the "i" icon in the upper-right corner. 
      • In the Update File text box, browse and select chf9010002.jar located under CF901/lib/updates directory. 
      • Click Submit Changes. 
    • Stop ColdFusion instance. 
    • Update CFIDE
      • Go to {CFIDE-HOME} and make a backup of CFIDE folder (I just copy and paste the folder in the same place)
      • Go to extracted CFIDE folder (typically CFIDE-901\CFIDE), copy all files into current CFIDE folder and overwrite existing files
    • Update WEB-INF
      • Go to {ColdFusion-Home}/wwwroot/WEB-INF directory and make a backup of WEB-INF folder (I just copy and paste the folder in the same place)
      • Go to extracted WEB-INF folder (typically CF901\CF901\WEB-INF\WEB-INF), copy all file into the current WEB-INF folder and overwrite existing files
    • Update lib folder (it's already backed up at the begining)
      • Go to extract lib folder (typically CF901\CF901\lib), copy all files (exclude the "updates" folder) into the current lib folder and overwrite existing files
    • Start Coldfusion instance
To Uninstall: 
  • Stop Coldfusion
  • Delete CFIDE, WEB-INF and lib folders, rename the copied folders back to their original name
  • Start Coldfusion