The Wicket Plugin became available directly from the plugin manager today. If your Netbeans is already running (as in my case - for two weeks without rebooting), you will have to hit the "Reload Catalog" button. The installation experience:
- The installation is very smooth. Just search for "Wicket" and install the two plugins. Total size: 9 MB.
- You will exceptionally have to restart the IDE afterwards.
- If you create a Java EE Web Project, just select the wicket framework support.
...and you will gain:
- Netbeans will setup Wicket libraries (1.4rc1) in your project and the Wicket Filter correctly in web.xml:
- It will create a skeleton for a Wicket application with Hello, Header, Home pages, implemented Application, a stylesheet etc.
- 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.
- The creation of pages is useful as well: Netbeans will create for you the HTML and corresponding Java files in parallel.
- Best of all: you can customize the templates in: Menu Tools --> Templates --> Web (Wicket).
- The deployment works perfectly with Glassfish v2 and v3
<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">
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 :-). That's real community effect :-)
Btw. Wicket 1.4 works perfectly with EJB 3 in GF v2 - stay tuned.
airhacks.fm the podcast:
Stay in touch: airhacks.news.