THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Let's see an example:
Parent.java:
Panelcode |
---|
public class Parent extends Component {} |
Parent.html:
Panelcode |
---|
... parent content ... <wicket:child/> ... parent content ... |
Child.html
Panelcode |
---|
<wicket:extend> ... child content ... </wicket:extend> |
Child.java:
Panelcode |
---|
public class Child extends Parent {} |
Renders as:
Panelcode |
---|
... parent content ... ... child content ... ... parent content ... |
It is just like having a Panel defined in your Component class markup, and let subclasses add the Panel. But it doesn't need an extra Component and is much easier to use. Markup Inheritance is also a convenient replacement for most Border components.
...