Title:
Prefix-based custom tags work only if cfimport is used outside of cfscript.
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Suchika Singh)
Created: 05/05/2014
Components: Language, CustomTag
Versions: 11.0
Failure Type: Unspecified
Found In Build/Fixed In Build: final /
Priority/Frequency: Major / Unknown
Locale/System: English / Win XP All
Vote Count: 0
Problem:
Method:The following code does not work:
<cfscript>
cfimport (prefix="myTags", taglib="../mycustomtags/");
myTags:calling01();
</cfscript>
Result:Invalid construct.
A script statement must end with ";".
..
coldfusion.compiler.ScriptParseExceptions$SemicolonMissingException: Invalid construct.
at coldfusion.compiler.ScriptParseExceptions.throwSemicolonMissingException(ScriptParseExceptions.java:109)
at coldfusion.compiler.cfml40.cfscriptStatement(cfml40.java:1605)
at coldfusion.compiler.cfml40.cfscript(cfml40.java:1455)
at coldfusion.compiler.cfml40.cfml(cfml40.java:4718)
at coldfusion.compiler.cfml40.start(cfml40.java:5150)
at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:620)
at coldfusion.compiler.NeoTranslator.parsePage(NeoTranslator.java:601)
at coldfusion.compiler.NeoTranslator.parseAndTransform(NeoTranslator.java:441)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:391)
Expected:Should work
Workaround: Use cfimport tag instead
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3754672
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: