CF Builder

6 views
Skip to first unread message

Joe

unread,
Oct 19, 2009, 5:32:07 PM10/19/09
to Mach-II for CFML
Does anybody have any plans on creating CF Builder extension that
automates the skeleton files into a project (much like the model-glue
one)? Right now I just copy and paste as usual but an extension would
be helpful. :)

Sumit Verma

unread,
Oct 19, 2009, 6:25:53 PM10/19/09
to mach-ii-for...@googlegroups.com

Kurt Wiersma

unread,
Oct 19, 2009, 10:07:52 PM10/19/09
to mach-ii-for...@googlegroups.com
This reminded me of a question I wanted to ask the Mach II community.
I have been considering working on a Mach II CFBuilder extension. What
types of features do think would be helpful to include to make you
more productive working with Mach II apps in CFBuilder?

--Kurt

Sumit Verma

unread,
Oct 19, 2009, 10:55:54 PM10/19/09
to mach-ii-for...@googlegroups.com
Its not related to extension, but code assist will be very helpful.

Brian Klaas

unread,
Oct 20, 2009, 9:09:31 AM10/20/09
to Mach-II for CFML
I'm not sure you that CFB Extensions can do code assist. My
understanding is that extensions are designed to run once, with all
logic in CF, and aren't background-style tasks like code assist/
completion. Though it sure would be nice to have code assist for the
XML config files... =)

In terms of an extension which builds a skeleton, it would be nice to
see an editable UI which includes options for including any of the
following:

- Environment property, including a UI for custom properties in each
environment (ie; dsn, admin email, root file paths, etc)
- ColdSpring property, including path to the CS config file and most
options supported by the CS property
- Logging configuration, including support for the basic M2 loggers
(email, CF)

brian

On Oct 19, 10:55 pm, Sumit Verma <su...@blogonria.com> wrote:
> Its not related to extension, but code assist will be very helpful.
>
>
>
> On Mon, Oct 19, 2009 at 10:07 PM, Kurt Wiersma <kwier...@gmail.com> wrote:
>
> > This reminded me of a question I wanted to ask the Mach II community.
> > I have been considering working on a Mach II CFBuilder extension. What
> > types of features do think would be helpful to include to make you
> > more productive working with Mach II apps in CFBuilder?
>
> > --Kurt
>
> > On Mon, Oct 19, 2009 at 5:25 PM, Sumit Verma <su...@blogonria.com> wrote:
> > > There are couple of them already out there.
> > >http://skeletonappgenerator.riaforge.org/
> > >http://www.robertburns.me/blog/archives/100
>

jlcox

unread,
Oct 20, 2009, 9:27:55 AM10/20/09
to Mach-II for CFML
I'd like to see something akin (ok, exactly akin) to the CFFrameworks
Explorer in CFEclipse. If I bring up a configuration file in
CFBuilder, the XML outline just shows a series of, say, event-
handlers, in the tree, labeled simply as "event-handler", but I want
to see the name of the event also. Otherwise I have to scroll or
search to find the one I want instead of just picking it off the tree
view.

Kurt Wiersma

unread,
Oct 20, 2009, 10:23:11 AM10/20/09
to mach-ii-for...@googlegroups.com
You can get code assist for the Mach II configuration file in
CFBuilder/CFEclipse by installing the Eclipse XML editor plugin from
the Web Tools (WST) Eclipse project. Then you just have to add the
doctype to top of your configuration file. I can post an example if
you need it. The code assist is really nice because it pulls in all
the dtd comments we have put in for each xml element. If you find
anything missing we love to get your contributions into the dtd file
to help others. :)

--Kurt

Derrick Jackson

unread,
Oct 20, 2009, 10:40:53 AM10/20/09
to mach-ii-for...@googlegroups.com
Kurt I assume this will only work if your config file is named mach-ii.xml and not mach-ii.xml.cfm

jlcox

unread,
Oct 20, 2009, 11:04:09 AM10/20/09
to Mach-II for CFML
I'm not looking for code assist. The CFEclipse Frameworks Explorer
gives you a tree view of your configuration file that allows quick
navigation to a particular event-handler (or property, listener,
whatever). Take a look at the Outline view for a cfc in CFBuilder and
imagine that for a configuration file. Where you see "cffunction =
doSomething", picture "eventHandler = home", for instance.

ma...@mattwoodward.com

unread,
Oct 20, 2009, 11:10:11 AM10/20/09
to mach-ii-for...@googlegroups.com
Actually you can tell eclipse to open the file with the xml editor even if it has an extension of cfm, in which case it'll work. Not in front of eclipse right now but pretty sure you just right-click and do "open with" and pick the xml editor.

Sent from my Verizon Wireless BlackBerry


From: Derrick Jackson <derrick....@gmail.com>
Date: Tue, 20 Oct 2009 10:40:53 -0400
Subject: [Mach-II] Re: CF Builder

Sumit Verma

unread,
Oct 20, 2009, 11:22:50 AM10/20/09
to Mach-II for CFML
Hi Kurt,

An example will be great. I installed the Eclipse XML Editors and
Tools 3.1.1 and added this to the XML catalog (not sure if needed or
not):

Location: http://www.mach-ii.com/dtds/mach-ii_1_8_0.dtd
URI: http://www.mach-ii.com/dtds/mach-ii_1_8_0.dtd
Key Type: Public ID
Key: -//Mach-II//DTD Mach-II Configuration 1.8.0//EN

I have the doc type at the top of the XML file:

<!DOCTYPE mach-ii PUBLIC "-//Mach-II//DTD Mach-II Configuration 1.8.0//
EN"
"http://www.mach-ii.com/dtds/mach-ii_1_8_0.dtd" >

But, I'm not getting any code assist. I using eclipse 3.4.2 with CF
builder beta 2.

Thanks,
Sumit

On Oct 20, 10:23 am, Kurt Wiersma <kwier...@gmail.com> wrote:
> You can get code assist for the Mach II configuration file in
> CFBuilder/CFEclipse by installing the Eclipse XML editor plugin from
> the Web Tools (WST) Eclipse project. Then you just have to add the
> doctype to top of your configuration file. I can post an example if
> you need it. The code assist is really nice because it pulls in all
> the dtd comments we have put in for each xml element. If you find
> anything missing we love to get your contributions into the dtd file
> to help others. :)
>
> --Kurt
>
> On Mon, Oct 19, 2009 at 9:55 PM, Sumit Verma <su...@blogonria.com> wrote:
> > Its not related to extension, but code assist will be very helpful.
>
> > On Mon, Oct 19, 2009 at 10:07 PM, Kurt Wiersma <kwier...@gmail.com> wrote:
>
> >> This reminded me of a question I wanted to ask the Mach II community.
> >> I have been considering working on a Mach II CFBuilder extension. What
> >> types of features do think would be helpful to include to make you
> >> more productive working with Mach II apps in CFBuilder?
>
> >> --Kurt
>
> >> On Mon, Oct 19, 2009 at 5:25 PM, Sumit Verma <su...@blogonria.com> wrote:
> >> > There are couple of them already out there.
> >> >http://skeletonappgenerator.riaforge.org/
> >> >http://www.robertburns.me/blog/archives/100
>

Derrick Jackson

unread,
Oct 20, 2009, 11:41:11 AM10/20/09
to mach-ii-for...@googlegroups.com
Thanks MW.  I figured it out after i sent the email. However I don't get any Mach II code assists.  I'm using the CF Build XML Editor and my config file has this at the top:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE mach-ii PUBLIC
    "-//Mach-II//DTD Mach-II Configuration 1.8.0//EN"
    "http://www.mach-ii.com/dtds/mach-ii_1_8_0.dtd">
<!--OAM Version 3.0-->
<!--<cfsetting enablecfoutputonly="true">-->
<mach-ii version="1.8">...

So yes, a example would be great.  May just be something small that I'm missing.  BTW I am using Eclipse Galileo

Kurt Wiersma

unread,
Oct 20, 2009, 6:41:09 PM10/20/09
to mach-ii-for...@googlegroups.com
You will want to make sure that you are having eclipse open the file
with WST XML editor instead of the lame aptana xml editor that is the
default in CFBuilder.

--Kurt

Joe Hale

unread,
Oct 20, 2009, 9:10:02 PM10/20/09
to mach-ii-for...@googlegroups.com
If anyone were to build an extension that automates creating a project for CFB, one of the items I would be most interested in is the ability to customize the app skeleton files (like css, jquery, and other files I use regularly between projects).

I lilke both the current extensions but they both contain small irritations for me. The skeletonappgenerator at riaforge unzips so that all files are place in the application root folder and not in their original folders. (there's probably a fix for this but I haven't found it.) The generator found at robertburns.me is a jar file and I can't edit the files (again if there is a way to do this, I don't have the experience for it but would be willing to learn.)

Thanks, for your help.

Sumit Verma

unread,
Oct 21, 2009, 12:31:18 AM10/21/09
to mach-ii-for...@googlegroups.com
Thanks, that's what I tried. For whatever reason it didn't work on my work computer. The tab will show in the editor but no content!  It's working on my home computer though (using eclipse 3.5.1). I will upgrade my work PC to 3.5.1 if needed...

Now only if we can have code assist for the rest of the framework ... :o)

Kurt Wiersma

unread,
Oct 21, 2009, 9:16:49 PM10/21/09
to mach-ii-for...@googlegroups.com
If you setup CFBuilder you can get code assist for the CFC's that are
part of the framework in addition too your cfcs. It has actually
helped my productivity a ton.

--Kurt

Sumit Verma

unread,
Oct 22, 2009, 11:22:28 PM10/22/09
to mach-ii-for...@googlegroups.com
Thanks Kurt! I didn't know about this awesome feature!

Do you know if it works with Linked resource? I'm not able to get it to work as my MachII folder is not in the project.

Kurt Wiersma

unread,
Oct 24, 2009, 6:29:06 AM10/24/09
to mach-ii-for...@googlegroups.com
Yes I have my M2 folder setup that way. Make sure to associate it with
a server too so you can get even more cfc assist.

Kurt

Sumit Verma

unread,
Oct 24, 2009, 9:58:11 PM10/24/09
to mach-ii-for...@googlegroups.com
Thanks. Setting the server did the trick!
Reply all
Reply to author
Forward
0 new messages