In MyPage.html have:
<a wicket:id="secondPage">Second PageLink</a>

and in MyPage.java:
add(new PageLink("secondPage", SecondPage.class));

The actual "href" part is created using voodoo magic in the backing Java class to your other pages.

-R

Kyriakos Tsourapas wrote:

Hi, I am new to wicket and have a pretty silly question, but could not find an example to help me…

 

Assuming you create an Application that will have two pages, the first page is easy to display using the

 

getPages().setHomePage(MyPage.class);

 

in the constructor of the application.

But, how can I have a link on the MyPage to show a second (third, fourth etc) page ?

 

 

Thanks in advance !!

Reply via email to