Title:
[ANeff] Bug for: CF10 vs CF11 wrt <cfwindow>-generated ColdFusion.Bind.register
| View in TrackerStatus/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 08/11/2015
Components: AJAX, UI Components
Versions: 11.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
CF11 breaks binding in <cfwindow> b/c:
1) ColdFusion.Bind.register is not wrapped w/ Ext.onReady(function(){..});
2) ColdFusion.Bind.register preceeds ColdFusion.Window.create
Steps to reproduce:
1) Run the following code
2) See binding is broken
3) Save the HTML source as foo.html
4) In foo.html, move all ColdFusion.Bind.register after ColdFusion.Window.create
5) In foo.html, wrap all ColdFusion.Bind.register w/ Ext.onReady(function(){..});
6) Run foo.html and see binding now works
Application.cfc
---------------
component {THIS.name = "ticket_cfwindowBindRegistration";}
index.cfm
---------
<cfwindow initshow="true">
<cfform>
<cfinput type="text" name="input1" value="">
<cfinput type="text" name="input2" bind="{input1}">
<cfselect name="select1" bind="cfc:MyCFC.f1()" display="col2" value="col1" bindonload="true" />
<cfselect name="select2" bind="cfc:MyCFC.f2(myArg={select1})" display="col2" value="col1" />
</cfform>
</cfwindow>
MyCFC.cfc
---------
component {
remote function f1() {
return queryNew("col1,col2", "integer,integer", [[4,4],[6,6]]);
}
remote function f2(numeric myArg) {
if(myArg lt 5) {
return queryNew("col1,col2", "integer,integer", [[1,1],[2,2],[3,3]]);
} else {
return queryNew("col1,col2", "integer,integer", [[7,7],[8,8],[9,9]]);
}
}
}
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4035001
Reason: BugVerified
External Customer Info:
External Company:
External Customer Name: Aaron
External Customer Email:
External Test Config: Confirmed in builds 11.0.05.293506 and 11.0.0.294632 using Win2k8R2 and Win10.
Attachments:
Comments: