Geertjan's Blog

  • September 19, 2006

Fastest Way of Starting Web Framework Integration

Geertjan Wielenga
Product Manager
In Rich Unger's blog, I found this list of web frameworks, although I'm sure there are hundreds more (excluding the thousands of inhouse frameworks that companies seem to inflict upon themselves):




















Here's the fastest way of implementing support in the IDE for any/all of the above:

  1. Download and install this brand new module (created and tested in NetBeans IDE 5.5 Beta 2, but will probably work in earlier versions):


  2. Create a module project.

  3. Add dependency on Web APIs. (Sounds like this is multiple APIs, but is actually only one.)

  4. Right-click the module project and choose the new wizard (provided by the module installed above):

    Finish the wizard and you'll have a new class extending WebFrameworkProvider, with placeholders for all the methods. All the necessary import statements are also included.

  5. Register the WebFrameworkProvider class in the layer.xml file:

    <folder name="j2ee">
    <folder name="webtier">
    <folder name="framework">
    <file name="package-subpackage-MyWebFrameworkProvider.instance"/>

Now, when you install the module, you'll see a new entry for your WebFrameworkProvider, in the New Project wizard for web applications, in the Frameworks panel. To extend that class, read pilot-chapter-registering-a-framework-4.pdf. (And send me comments on that chapter, while you're at it.)

The registering of the WebFrameworkProvider class and the dependency on Web APIs should also be provided by the wizard, ultimately. But the current version is just a quick implementation of the NetBeans File Template Module Tutorial.

In other news. In the category "You know you have a cool job when...", my ultimate entry is: "...you fall asleep on the job and colleagues take pictures of you instead of rudely waking you up." Evidence from yesterday, thanks to colleague Rudolf Balada:

Join the discussion

Comments ( 6 )
  • Jacek Tuesday, September 19, 2006
    The link to the NBM gives a 404 :-(
  • Geertjan Tuesday, September 19, 2006
    Right-click the link. I've tested it and it works.
  • Geertjan Tuesday, September 19, 2006
    Or maybe you're behind a firewall.
  • Petr Zajac Tuesday, September 19, 2006
    Cool! It's time to create NetBeans module dev u2.
  • Thiago HP Wednesday, September 20, 2006
    The other news is specially funny in Brazil, as the word 'balada' also means 'going out at night and having fun and/or parties'. Rudolf Balada really looks like he had a very good 'balada' the night before :P
  • Geertjan Wednesday, September 20, 2006
    Thiago, that's not Rudolf Balada. That is me. Rudolf took the picture...
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.