A panel can not have a body where you reference it. But, in Java, as a
component, you can give it a model. And - obviously - you can use that
model to render the panel's markup (that has a body). Additionally,
using our new <wicket notation, you could give this body (assuming it's
a String/ text) as an argument for the panel. That too, you can use for
rendering your panel's markup.
Eelco
Gili wrote:
On Tue, 04 Jan 2005 21:06:01 +0100, Eelco Hillenius wrote:
Gili wrote:
So a panel may not have a body, which means my round corner box
is really a border of some kind, but not really either.
Requirements:
- The box must be allowed to contain a body -- so it's not a panel.
Why not a panel? I would use a (MultiLine)Label or a ListView for that
body. What you actually provide to be the body (like a static String), I
would hide in an instance of IModel, so the RoundCornerPanel uses that
as it's model.
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop