Geertjan's Blog

  • August 16, 2005

Drag-and-Drop JSP and HTML Code Snippets in NetBeans IDE

Geertjan Wielenga
Product Manager
Check out the cool palette that makes my JSP and HTML life so much easier. I found it in a NetBeans IDE Dev build yesterday, (i.e., it is not in NetBeans IDE 4.1, but in a development build for the next release, which you can download and try out here). The palette opens automatically when you open a JSP file or an HTML file in the Source Editor. Then you drag the code snippet of your choice into the page. Next, a dialog box opens and you can define the most common properties. Really good news, I think. This is what it looks like for a button:

Join the discussion

Comments ( 6 )
  • pprun Tuesday, August 16, 2005
    It's great!

    it's my voted enhancement.

    Thanks you, Netbeans team.

    From now on, Netbeans is the preferred IDE introduced to newbies by me.
    (you known, at most time, the simple j2ee applicaiton is their first tast about java, sure, except the 'Hello world' example.)

  • pprun Tuesday, August 16, 2005
    cannot wait for the presenting dev build on the download site.

    Do you know why the lastest one is '11 August, 18:00' on my view?
  • Geertjan Tuesday, August 16, 2005
    I could be wrong, but I think if you download the daily build at http://www.netbeans.info/downloads/download.php?a=n&p=1, you should get what you're looking for...
  • Iwan Eising Tuesday, August 16, 2005
    Now we only have to wait for drag-n-drop of JSF components, aka donation of Creator to NB world ;)
  • Geertjan Sunday, August 21, 2005
    Good idea Iwan. I'll ask around in the next few days and see what the plans are...
  • Geertjan Thursday, August 25, 2005
    In response to Iwan's question about drag and drop of JSF components, I asked about it today and was told (by the manager of the J2EE/web team): "Definitely, frameworks such as JSF and Struts would be perfect candidates for new snippets. As everything, this depends on the priorities we have." Personally, I'd expect the addition of JSF and Struts snippets to be one of the first enhancements, for the release after the upcoming release (4.2).
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.