In my previous post I chronicled my experiences building a ColdFusion Builder extension. Raymond Camden, very politely, stated that some of my assertions where wrong. Turns out Ray was right. I did some investigation and found that ColdFusion Builder extensions can in fact handle forms. I didn't find a particularly good documentation of this so here is how to set up extensions to use html forms, javascript and html. Even better it requires no parsing of XML to get form data.
ide_config.xml
Nothing special or different in this file. In the above code we add a menu item and have the action point to an index.cfm file.
index.cfm
This file will be called when the menu item is clicked on. The key line is the ide tag which points to a URL. You can see this called aform.cfm and doing this method breaks out of the Eclipse controls and into the default browser for Eclipse (or your system...I'm not sure which).
aform.cfm
Love or loath cfform, I used it above to illustrate that JavaScript works. This makes a form in the extension:
It posts to formresults.cfm which simply dumps out the form results as seen below:
formresults.cfm