Re: wicket:border is adding table

2008-12-16 Thread Thorsten Scherler
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 --
 span wicket:id=myContentcontent/span
 !-- 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
  ulli 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: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
-- 
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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:border is adding table

2008-12-16 Thread Thorsten Scherler
El mar, 16-12-2008 a las 03:31 -0800, jWeekend escribió:
 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?

Yeah after writing my last mails I had a closer look again on
BoxBorder.java and finally saw the BoxBorder.html. 

I ended up creating a PlainBorder.java and PlainBorder.html that just
added my decorative. Step by step I getting the concept. ;)

thanks.

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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:border is adding table

2008-12-16 Thread Martijn Dashorst
In short: don't use BoxBorder (which should be removed anyway, since
it is a useless component in this day and age of CSS)

Martijn

On Tue, Dec 16, 2008 at 12:31 PM, jWeekend jweekend_for...@cabouge.com wrote:

 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
  ulli 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: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:border is adding table

2008-12-16 Thread jWeekend

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
  ulli 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: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
 -- 
 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket:border is adding table

2008-12-15 Thread jWeekend

Thorsten,

Yes, that's exactly how BoxBorder draws the box/border. You'd probably
prefer to use CSS.

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
 ulli 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wicket%3Aborder-is-adding-table-tp21014647p21014999.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicket:border is adding table

2008-12-15 Thread Thorsten Scherler
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
  span wicket:id=navigationBorder 
   bNavigation Links/b
   wicket:link
ullia href=someThing.htmltest/a/ul
   /wicket:link
  /span
  span wicket:id=bodyBorder id=bodyBorder
   wicket:body/
  /span
 /div
 span wicket:id=footer id=bodyBorderFooter Info/span
/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. span
wicket:id=navigationBorder is rendered normal and after this it is
rendered within a table:
span id=navigationBorder
 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%
   bNavigation Links/b
...

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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org