Technote Details :: KTML does not work properly on ColdFusion

Issue

After applying KTML on a form in a ColdFusion page, when previewing it in a browser I get an error message saying:

 

The selected method KTML4_CreateObject was not found.

 

Reason

This happens when applying KTML on a form that is enclosed by a <cfprocessingdirective> tag. Due to a Dreamweaver bug, one of the required lines that includes the server-side class for KTML is positioned in the wrong place.
 

Solution

To fix this problem, follow the next steps:

  1. Open the page in Dreamweaver and switch to code view.
  2. Locate the closing </cfprocessingdirective> tag. Right beneath it, a cfinclude statement should be visible. The code block should resemble the following:

    </cfprocessingdirective>
    <cfinclude template="includes/ktm/ktml4.cfm">

  3. Cut the <cfinclude> line and paste it as the first line in the file.
  4. Save the file and preview the page in the browser once more. All should work just fine. 

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.