/** * Handles a link click by asking for a concrete Page instance through the IPageLink.getPage() * delayed linking interface. This call will normally cause the destination page to be created. * * @see org.apache.wicket.markup.html.link.Link#onClick() */ @Override public void onClick() { // Set page source's page as response page setResponsePage(pageLink.getPage()); } }
public Page getPage() { // Create page using page factory return getSession().getPageFactory().newPage(c); }
public Page getPage() { // Create page using page factory return PageLink.this.getPage().getPageFactory().newPage(c); }
/** * Handles a link click by asking for a concrete Page instance through the IPageLink.getPage() * delayed linking interface. This call will normally cause the destination page to be created. * * @see org.apache.wicket.markup.html.link.Link#onClick() */ public void onClick() { // Set page source's page as response page setResponsePage(pageLink.getPage()); } }