public abstract static class DirtyPageHandler.DirtyPageContext extends Object
trackNavigation when DirtyPageHandler needs to track navigation and call confirmNavigation when a navigation will result in the loss of uncommitted data| Constructor and Description |
|---|
DirtyPageHandler.DirtyPageContext() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
confirmNavigation(String confirmationToken)
Called by the DirtyPageHandler implementation when a navigation that would result in data loss occurs.
|
public abstract void confirmNavigation(String confirmationToken)
After this method is called, the user will be asked to confirm the navigation. If the user confirms the navigation, the view will call DirtyPageHandler.navigationConfirmed with the token passed to confirmNavigation and then call FacesContext.renderResponse(). Otherwise, the view will call DirtyPageHandler.navigationCanceled passing the same token.
It is the DirtyPageHandler's responsibility to save and restore its state as necessary using the token.
confirmationToken - Token representing any state that needs to be restored if the user confirms the navigationDirtyPageHandler.navigationConfirmed(java.lang.String), DirtyPageHandler.navigationCanceled(java.lang.String)