Ok, I understand now, but this isn't what I need. It is all
well that I can give the panel markup a body, but I need to actually
have this body in the Page markup. That is, I need to be able to say:
<wicket:component name="myBox"
class="wicket.markup.html.panel.RoundCornerPanel" width="100%">
This is some text inside my box
</wicket:component>
Gili
On Wed, 05 Jan 2005 00:44:02 +0100, Eelco Hillenius wrote:
>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
>
-------------------------------------------------------
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