|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.target.component.PageReferenceRequestTarget
public class PageReferenceRequestTarget
Target that navigates to a page pointed to by its id. The great benefit of this target over the PageRequestTarget is that no reference to the actual page is needed, which greatly facilitates navigational usecases where a list or a stack of page references is needed (ie breadcrumbs).
PageReference
Constructor Summary | |
---|---|
PageReferenceRequestTarget(Page page)
Constructor Even though a page is passed in, only a reference to its PageReference is kept |
|
PageReferenceRequestTarget(PageReference pageReference)
Constructor |
Method Summary | |
---|---|
void |
detach(RequestCycle requestCycle)
This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done. |
Page |
getPage()
Gets the page instance. |
PageReference |
getPageReference()
|
void |
respond(RequestCycle requestCycle)
Generates a response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageReferenceRequestTarget(Page page)
PageReference
is kept
page
- public PageReferenceRequestTarget(PageReference pageReference)
pageReference
- Method Detail |
---|
public final PageReference getPageReference()
public void respond(RequestCycle requestCycle)
respond
in interface IRequestTarget
requestCycle
- the current request cyclepublic void detach(RequestCycle requestCycle)
detach
in interface IRequestTarget
requestCycle
- the current request cyclepublic Page getPage()
getPage
in interface IPageRequestTarget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |