Example:
Panel Markup: .. <div wicket:id="myPanel"> My Panels body </div> .. Panel associated Markup: <wicket:panel> .. <div wicket:id="myBody"/> .. </wicket:panel> Panel Java code: class MyPanel extends Panel { .. public MyPanel(String id) { add(new Body("myBody", this); } .. }There can be any number of containers between the Panel and Body. You must only remember to provide the correct markup provider to the Body. @author Juergen Donnerstag
|
|