Saturday, May 5, 2007

Wicket using panels

clipped from www.javalobby.org

Wicket: Reusable Panels


Last time in my article
A Little Bit About Wicket
,
I extolled the virtues of the MVC framework
Wicket
in creating modular, reusable components for your Java web application.
Today I want to show you a brief run-through of one of the key components for Wicket's reusability - the Wicket
wicket.markup.html.panel.Panel
.


Wicket
Panels
are another type of component, like
Label
or
ListView
from the previous tip.
Unlike Label or ListView, however, a Panel is allowed to have its own associated markup. So while the markup for the
ListView

'people' from our previous tip was embedded in the containing page's markup, a
Panel
has its own markup file, and that makes it
much more reusable.

0 comments: