Thorsten,
Wicket's Border component has associated markup so it may not be what it
sounds like you're looking for.
If all you need is a rectangular border drawn around some widgets, group
them together (maybe in a div), give the grouping a class attribute and
apply a CSS style, eg
.myGroupedWidgets {border: thin solid #ccc;}
If you need more control/something more dynamic, you can map this grouping
to a WebMarkupContainer and use an attribute modifier.
Of course you could achieve the same effect with a Wicket Border component,
but if all you're doing is wrapping your content in a div, you may not want
the overhead of providing the associated markup file such a border would
require. On the other hand, using a Border would enable you to wrap your
content with much more interesting stuff than just a rectangle!
Does that make sense?
Regards - Cemal
http://www.jWeekend.co.uk jWeekend
Thorsten Scherler-3 wrote:
>
> El lun, 15-12-2008 a las 06:40 -0800, jWeekend escribió:
>> Thorsten,
>>
>> Yes, that's exactly how BoxBorder draws the box/border. You'd probably
>> prefer to use CSS.
>
> Can you, please, extend a wee bit?
>
> As I understand the border component: you can inject child content INTO
> a template page. The <wicket:body/> is the injection hook which get
> replaced by the child content.
>
> Like:
> <div wicket:id="myBorder">
> <!-- Border markup -->
> content
> <!-- Border markup -->
> </div>
>
> A panel does not allow a body meaning you can inject a panel into your
> page but not inject your page into a panel.
>
> <div wicket:id="myPanel">
> <!-- Panel markup -->
> </div>
>
> So what I am looking for is a Border component that does not do any extra
> markup rendering.
>
> You say use css, I do not understand what you mean.
>
> salu2
>
>>
>> Regards - Cemal
>> http://www.jWeekend.co.uk jWeekend
>>
>>
>>
>> Thorsten Scherler-3 wrote:
>> >
>> > Hi all,
>> >
>> > I am playing around with wicket and have a question.
>> >
>> > http://wicket.apache.org/examplenavomatic.html
>> >
>> > is the page I am following to develop a custom application.
>> >
>> > in my html I have
>> > <wicket:border>
>> > <div id="content">
>> >
>> > Navigation Links
>> > <wicket:link>
>> > <ul><li> someThing.html test </ul>
>> > </wicket:link>
>> >
>> >
>> > <wicket:body/>
>> >
>> > </div>
>> > Footer Info
>> > </wicket:border>
>> >
>> > and in my java class I have:
>> >
>> > public class NavomaticBorder extends Border {
>> > public NavomaticBorder(final String componentName) {
>> > super(componentName);
>> > add(HeaderContributor.forCss("css/default.css"));
>> > add(new BoxBorder("navigationBorder"));
>> > add(new BoxBorder("bodyBorder"));
>> > add(new Footer("footer"));
>> > }
>> > }
>> >
>> > However in my resulting page I have a tabled rendered within. is
>> rendered
>> > normal and after this it is
>> > rendered within a table:
>> >
>> > <table width = "0%" border = "0" cellspacing = "0" cellpadding = "1"
>> > bgcolor = "black">
>> > <tr>
>> > <td width = "100%" valign = "top">
>> > <table width = "100%" border = "0" cellspacing = "0" cellpadding =
>> "4"
>> > bgcolor = "white">
>> > <tr>
>> > <td width = "100%">
>> > Navigation Links
>> > ...
>> >
>> > I suspect that it may be because of new BoxBorder but I am not sure.
>> >
>> > Basically my question is: how to tell wicked to NOT render the table?
>> >
>> > TIA for any hints
>> >
>> > salu2
>> >
>> >
>> > --
>> > Thorsten Scherler <thorsten.at.apache.org>
>> > Open Source Java <consulting, training and solutions>
>> >
>> > Sociedad Andaluza para el Desarrollo de la Sociedad
>> > de la Información, S.A.U. (SADESI)
>> >
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>> >
>> >
>>
> --
> Thorsten Scherler <thorsten.at.apache.org>
> Open Source Java <consulting, training and solutions>
>
> Sociedad Andaluza para el Desarrollo de la Sociedad
> de la Información, S.A.U. (SADESI)
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/wicket%3Aborder-is-adding-table-tp21014647p21031448.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]