Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87530

Re: How to use CF Builder coming from Dreamweaver?

$
0
0

Mike, ColdFusion Builder provides code insight for a CFC variable if it can resove the path of that CFC. I have provided a brief description of how CFCs are resolved in the section 'CFC path mappings for Projects' in 'What's new in ColdFusion Builder 2.0.1' article.

 

Coming to the code insight issue using ColdSpring - in ColdSpring you create objects/CFCs using getBean method of coldspring.beans.DefaultXmlBeanFactory CFC.  getBean method returns 'Any' object. So from the return type CFB cann't resolve path of the CFC. And since there is no tight integration between CFB and ColdSpring, CFB does not know that getBean method returns CFC and that full name of the CFC is specified in the xml config file of ColdSpring.

 

Just like in ColdSpring you map CFC alias to its full name (using <bean> tag), if you tell CFB that a variable is in fact of a particular CFC type, then CFB would be able to provide code assist for that variable. To do this -  right click on the project, and select Properties (project propoerties). Then go to 'CFC Mappings' section and provide mapping between variable name and full CFC name. For example you might map userService to MyColdSpringApp.UserService. Once you do this, CFB would provide code assist when you type "userService."

 

To add default content to new pages, go to Preferences->ColdFusion->Profiles->Editor. At the bottom of this preference page, you will find options to specify initial content for CFC and CFM files.

 

-Ram

Adobe ColdFusion Team


Viewing all articles
Browse latest Browse all 87530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>