in my project i’ve faced a problem with wicket panels. Suppose we have a ready page which extends WebPage
public class MyPage extends WebPage {
public MyPage(){
add(new Label("some id","Hello"));
}
}
and Panel which extends Panel
public class MyPanel extends Panel{
public MyPanel(){
// here need to add content of MyPage
// for example : inclide(new MyPage())
}
}
how can i include my page into panel, or how can i include content of page into panel?
Split Mypage into a page and a panel, reuse this new panel in MyPanel.