目前,我撰写了一部分内容,应当作为其他组成部分的祖先使用,而我不相信,哪些内容对我的组成部分及其继承中应具备的变量具有最佳的变量范围。
其他节目语言,如帕斯卡尔有“受保护的”准入规则,可以做这项工作,但我对CF来说是新鲜的,却不了解他们所依赖的东西。
目前,我撰写了一部分内容,应当作为其他组成部分的祖先使用,而我不相信,哪些内容对我的组成部分及其继承中应具备的变量具有最佳的变量范围。
其他节目语言,如帕斯卡尔有“受保护的”准入规则,可以做这项工作,但我对CF来说是新鲜的,却不了解他们所依赖的东西。
冷酷无保护范围。variables scope is only accessible for the composition within and its supplementedlement. 变量范围是你的最佳选择。
例:
构成部分A:
component output="false"
{
variables.name = "John";
}
构成部分B(扩展构成部分A):
component extends="ComponentA" output="false"
{
remote void function test(){
writeDump(variables.name);
}
}
新的构成部分B(测试);将“John”丢弃;
Accessing variables scope from outside the component throws an error:
writeDump(b.name);
or writeDump(a.name);
will throw an error (name is undefined)
An IE issue has me completely stumped. I have a coldfusion page that uses JQuery s AJAX .load function to load in a new flash file that is generated by coldFusion s cfchart tag. This works completely ...
I am getting ready to start a project that requires using OpenID within Coldfusion 8. I have found a number of different options and was wondering what has worked the best, get s the most support, ...
So this all began in trying to get Coldfusion9 portlets to run under Liferay, just like examples that I ve seen running JBOSS: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSC00E3E9C-DC24-...
function getStateInfo(state){ alert(state); var f = new funcs(); f.setCallbackHandler(updateFormFieldStateInfo); f.setQueryFormat( column ); f.qry_getLenderEvictionStateInfo(<cfoutput>#...
Is there a way to find the elements generated by ColdFusion s <CFLayout> and <CFLayoutArea> tags? These tags: <cflayout type="tab" name="MyAccount"> <cflayoutarea name="...
Let me first say I am aware of this faq for Mach-II, which discusses using application specific mappings as a third option when: locating the framework in the server root is not possible and creating ...
I am upgrading from CF4.5 to CF8. Calls to COM dll s that used to work in version 4.5 now throw a "Complex object types cannot be converted to simple values.." error. The COM object has a few arrays ...
Sometimes it is necessary to write different code for Adobe ColdFusion vs Railo vs OpenBD, due to differences in implementation. Do people have a specific method that they use for this? For example, ...