Kickstart Wicket in NetBeans IDE 4.1

"Wicket is a new Java web application framework that takes simplicity, separation of concerns and ease of development to a whole new level. Wicket pages can be mocked up, previewed and later revised using standard WYSIWYG HTML design tools. Dynamic content processing and form handling is all handled in Java code using a first-class component model backed by POJO data beans that can easily be persisted using your favourite technology." (From What is Wicket?.)

  1. Download and unzip the wicket-kickstart-1.0 sources.
  2. In the IDE, click Ctrl-Shift-N. (Or choose File > New Project.) The New Project Wizard appears. Choose Web and then Web Application with Existing Sources:

  3. Click Next and browse to the location where you unzipped the Wicket Kickstart sources. Select the "wicket-kickstart-1.0" folder for the Location field. Name the project "Kickstart". Click Next and Finish.

From a traditional NetBeans IDE (or probably any other) perspective, the structure of the kickstart project is novel, because the HTML file is located within the source package:

However, the reason for this is that everything in a wicket project is nothing more than a component and, in Tim Boudreau's words, "both the HTML and Java code needed are as simple as the things they're supposed to do". He also says that Wicket is "possibly the cleanest solution to POJO web apps that I've seen at release candidate phase". Matt Raible also has some cool things to say about Wicket here. One thing I personally like about Wicket's philosophy is that it "does not introduce any special syntax to HTML. Instead, it extends HTML in a standards-compliant way via a Wicket namespace that is fully compliant with the XHTML standard." They cite JSP as being "by far the worst offender, allowing the embedding of Java code directly in web pages", while most other frameworks "introduce some kind of special syntax to your HTML code". No special syntax! Wow. This is cool, in Wicket's own words, because special syntax "changes the nature of HTML from the kind of pure-and-simple HTML markup that web designers are familiar with, to some kind of special HTML. This special HTML can be more difficult to preview, edit and understand".

Now that you've got the Kickstart up and running (all you need to do to run the Kickstart application is right-click the project and choose Run Project), you should check out the Wicket Stuff site, which "provides additional Java web components to the core components supplied by the Wicket framework". The additional components include Spring, Hibernate, and Groovy. Or check out their cool samples.

Update 5/7/05: You can now download all the Wicket samples as NetBeans projects. When you do so, you can just open them as projects, just like any other project, from inside the IDE. After resolving some dependencies, you can deploy them, just like any other NetBeans IDE project. For more information, and for the downloadable ZIP file, click here.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
24
25
26
27
28
29
30
   
       
Today