DWR NetBeans plugin

This is the initial release of DWR plugin for NetBeans. This version currently supports the following features:
1. Add DWR supports to new or existing JavaEE based web application
2. Multiview editor for dwr.xml file. Currently there are 3 views: Create, Convert and the raw XML file
3. Drag and drop of exported Java objects to JSP pages

In lieu of a screencast, here is a simple text walkthrough:
1. Create a new web application. Add DWR framework
2. Add a JavaBean to your application. Now click on the bean icon at the editor menubar (see image below) to export the JavaBean as a JavaScript object

There are other ways of doing this; context menu from the editor and the project editor window.
3. You will now be presented with the DWR editor (see image).

4. Now drag 'Insert Dwr Object' from the palette to a JSP page. A dialog will be displayed (see image).

 

Select the method you want to paste on the page. You can customize the call in the editorpane. If you have installed NetBean's JavaScript editor like I did in the image, then you will will get syntax coloring, etc.
5. Don't forget the add Dwr library declaration. Drag 'DWR Libraries' to insert engine.js and util.js declarations.
6. Deploy and test

Currently the plugin only supports 'create' with the 'new' operation. Some features that I hope to support in the next version:
1. Exporting Struts form bean
2. A new view in the editor for signatures. I'm still thinking how to create an editor that will intuitively allow me to express conversions
3. Exporting JSF managed beans

You can find the NBM here and the source is available from https://ajax.dev.java.net CVS. I've not tested the plugin extensively on handcrafted dwr.xml file so I'm not sure how robust it is. Please report any bugs you find to me. 

Comments:

Post a Comment:
Comments are closed for this entry.
About

Random thought at random intervals

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today