ColdFusion Builder component wizard interface feature

Word Count: 148

A fond a cool little tip in ColdFusion Builder that for whatever reason I did not know existed. If you have an inteface that you are working with and you need to create a component that will implement I suggest using the new component Wizard. If you have worked in ColdFusion Builder you most likely have already seen the screen below. What you may not know though is that if you select an interface to implement and click finish it will read interface details and create your code for you.


Comments

#1 Posted By: Jeremy Rottman Posted On: 9/25/09 6:36 PM
Is it a known bug that you can not have return type of a component? I have tried various different return types and the only one that I can't not get to work is when I want a return type of a component.

interface
{
   public com.rottmanj.model.vo.ProductVO
   function Product_Create(required com.rottmanj.model.vo.ProductVO vo);

}

component implements="com.model.interface.IProduct"
{
   public com.rottmanj.model.vo.ProductVO function Product_Create(required com.rottmanj.model.vo.ProductVO vo)
   {

   };
}


Post Your Comment

Leave this field empty







Show Captcha

If you subscribe, any new posts to this thread will be sent to your email address.

Copyright © 2007 Dan Vega | BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.