Page navigation within the controller

wicket

Solution

I have found a good page navigation method:

public void onSubmit() {
        PageParameters params = new PageParameters();
        params.add("param1", "value1");
        setResponsePage(ListContacts.class, params);
}

Problem

What is the method to do page navigation within a Wicket "controller"? I would like to go to another internal page and pass in parameters based on data within the page.

Original source