This way of arranging things is useful in determining whether a link links to a given page, which is in turn useful for deciding how to display the link (because links in a navigation which link to a page itself are not useful and generally should instead indicate where the user is in the navigation).
To understand how getPageIdentity() is used in this way, take a look at the Link.linksTo() method and its override in PageLink. Also, see the documentation for getPageIdentity() below. @see Link#linksTo(Page) @author Jonathan Locke @deprecated Use {@link org.apache.wicket.core.request.handler.PageProvider}
|
|