Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Wicket 1.4 + NetBeans IDE 6.5 = The Dream Team

DZone's Guide to

Wicket 1.4 + NetBeans IDE 6.5 = The Dream Team

· Java Zone ·
Free Resource

Verify, standardize, and correct the Big 4 + more– name, email, phone and global addresses – try our Data Quality APIs now at Melissa Developer Portal!

The NetBeans Wicket Plugin became available directly from the Plugin Manager yesterday. If your NetBeans IDE is already running (as in my case - for two weeks without rebooting), you will have to hit the "Reload Catalog" button. The installation experience:

  1. The installation is very smooth. Just search for "Wicket" and install the two plugins. Total size: 9 MB.
  2. You will exceptionally have to restart the IDE afterwards.
  3. When you create a Java EE Web Project, just select the Wicket framework support.

...and you will gain:

  1. NetBeans IDE will set up Wicket libraries (1.4rc1) in your project and the Wicket Filter correctly in web.xml:
  2. <web-app
    version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <filter>
            <filter-name>WicketApplication</filter-name>
            <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
            <init-param>
                <param-name>applicationClassName</param-name>
                <param-value>com.abien.wicket.Application</param-value>
            </init-param>
            </filter>
        <filter-mapping>
            <filter-name>WicketApplication</filter-name>
            <url-pattern>/wicket/*</url-pattern>
        </filter-mapping>
        <session-config><session-timeout>
                30
            </session-timeout></session-config>
        <welcome-file-list>
            <welcome-file/>
        </welcome-file-list>
    </web-app>
  3. It will create a skeleton for a Wicket application with Hello, Header, Home pages, implemented Application, a stylesheet etc.
  4. Really interesting is the support for switching between HTML pages with a given ID and corresponding Java files (Ctrl + click on the wicket id in HTML files). This saves a lot of time.
  5. The creation of pages is useful as well: NetBeans IDE  will create for you the HTML and corresponding Java files in parallel.
  6. Best of all: you can customize the templates in: Menu Tools --> Templates --> Web  (Wicket).
  7. The deployment works perfectly with Glassfish v2 and v3

 

NetBeans IDE has really good support for HTML editing and Database, CSS - even with preview. The "deploy on save" feature is useful for wicket development either. NetBeans IDE, however, does not recognize changed HTML files in the Source Packages folder yet (changes in the Web Pages folder are correctly recognized).

Special thanks to Geertjan Wielenga. It started with a conversation between Poznan and Gdansk at NetBeans world tour, and ended with a supported version of Wicket plugin in NetBeans IDE :-). That's real community effect :-)

Btw. Wicket 1.4 works perfectly with EJB 3 in GF v2 - stay tuned.

From http://www.adam-bien.com/roller/abien/entry/wicket_1_4_netbeans_6

Developers! Quickly and easily gain access to the tools and information you need! Explore, test and combine our data quality APIs at Melissa Developer Portal – home to tools that save time and boost revenue. Our APIs verify, standardize, and correct the Big 4 + more – name, email, phone and global addresses – to ensure accurate delivery, prevent blacklisting and identify risks in real-time.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}