Juergen Donnerstag schrieb:
please see http://www.wicket-wiki.org.uk/wiki/index.php/Panels_and_borders
and copied from previous mails
Maybe 'around' is a bit a weird term too. A more visual explanation
Yes, the definition of panel and border isn't very understandable. I
also had the impression that a visual example would help more.
I have updated the wiki article:
| Both Panels and Borders have their own markup file, but the markup is
| used in different ways:
|
|
| The Border component inserts markup before and after its child
| components.
|
| <html>
| <body>
| <div wicket:id="myBorder">
| <!-- Border markup -->
| <span wicket:id="myContent">content</span>
| <!-- Border markup -->
| </div>
| </body>
| </html>
|
|
| The Panel component inserts markup into the body of the tag.
|
| <html>
| <body>
| <div wicket:id="myPanel">
| <!-- Panel markup -->
| </div>
| </body>
| </html>
Jeffrey, is this understandable? Comments are welcome.
Timo
Panel:
<div>
blah, blah
<span>
Panel contents
</span>
more blah
</div>
vs Border:
<span>
Border before
<div>
blah, blah
more blah
</div>
Border after
</span>
So in fact, a border puts markup before and after a component, while a
panel is put inside it.
Juergen
On 4/13/06, Jeffrey H. Lin <[EMAIL PROTECTED]> wrote:
I'm currently designing the page layout and navigation for a wicket
application, and I was wondering if anybody could tell me the difference
between Panel and Border. Both seem to apply to what I want to do, which
is to create a generic navigation system without repeating code on every
page. I'm not quite sure what the advantages of one over the other are.
Any guidance would be much appreciated!
Thanks,
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user