RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX


Java Web Development the Wicket Way : Page 5

Wicket, a lightweight, component-oriented web application framework in plain Java and XHTML, stresses separation of concerns, testability, and good object-oriented design practices. Check out Wicket's approach to common implementation scenarios.

FileDropoff Test Drive
Now that all of your tests have passed, it's time to fire up your Wicket application and try it out in a browser. Since you used a test-driven methodology, you can expect things to work immediately because automated functional tests are already exercising the code. In a real development situation, you should write tests to verify error condition behavior as well (invalid field values, and so on). Try deploying the application remotely or using very large files to see the progress bar in action—uploading to your local disk may go too fast.

Wicket requires only a servlet container to run, and it encourages the use of the Jetty container, whose lightweight footprint is further reduced by the exclusion of a JSP engine. The FileDropoff example was created using the Wicket Maven archetype. You can launch it by simply running mvn jetty:run. Alternatively, the archetype also creates a Start class, which embeds Jetty and can be conveniently debugged as a normal Java application.

Wicket recently became an Apache Software Foundation project, and it is approaching a major release. It represents a good option for lightweight, component-oriented web application development using pure Java and object-oriented design principles and patterns.

Daniel Carleton has nine years of professional IT industry experience. Recently he worked as a lead software engineer at a medium-sized, publicly traded company, and currently is the sole proprietor of Exaptic Solutions, a software consulting firm in Seattle, WA.
Email AuthorEmail Author
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date