ModalX for Wicket
 Next: Live Demo

ModalX for Wicket

ModalX stands for "Modal eXtensions".

Wicket is one of the best Java User Interface frameworks available. We've been using it since 2006 and have never looked back.

The Wicketstuff library is designed to be a collections of enhancements that extend the Wicket framework with useful 'add ons'. ModalX is now part of the Wicketstuff library and is open source, released under the same Apache license.

ModalX is a small, elegant set of classes arranged in such a way that makes the creation and use of Modal Forms and Message Boxes in wicket just as easy as it was in the good old days of desktop development using MFC, OWL or Swing. Back in those days all you needed to do was derive from a ModalWindow class, add your 'extra' bits then simply instantiate the modal window and voila!

Please read on to discover what ModalX is, why it exists, play with a live demo and download it:

ModalX is a small number of classes that extend Wicket to provide simple Modal Window implementations that make it much more like the style of modal window development that you would see in a typical Java Swing or Windows C++ application.

It makes it possible to override just a single class to create a new modal window or modal form. Simply extend ModalContentPanel or ModalFormPanel and then override addFormComponents (in the case of ModalFormPanel).

Integrating ModalX: It's simple and quick!

ModalX takes care of the allocation and deallocation of generic ModalWindow instances to save you from having to do it. This mechanism is easily added to new or existing applications. You simply make your base page class implement ModalMgr to automatically provide generic ModalContentWindow's on demand to any where in your app that requires them. As an alternative to implementing the ModalMgr interface yourself you can use an optional convenience class ModalXPage that can be simply inserted into your Page class hierarchy to provide the required ModalMgr implementation to make the 'magic happen'.
 

 ModalX for Wicket
 Next: Live Demo