Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E10684-05


oracle.adf.view.rich.context
Class DirtyPageHandler.DirtyPageContext

java.lang.Object
  extended by oracle.adf.view.rich.context.DirtyPageHandler.DirtyPageContext

Enclosing class:
DirtyPageHandler

public abstract static class DirtyPageHandler.DirtyPageContext
extends java.lang.Object

Context class passed to the DirtyPageHandler's trackNavigation when DirtyPageHandler needs to track navigation and call confirmNavigation when a navigation will result in the loss of uncommitted data


Constructor Summary
DirtyPageHandler.DirtyPageContext()
           

 

Method Summary
abstract  void confirmNavigation(java.lang.String confirmationToken)
          Called by the DirtyPageHandler implementation when a navigation that would result in data loss occurs.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DirtyPageHandler.DirtyPageContext

public DirtyPageHandler.DirtyPageContext()

Method Detail

confirmNavigation

public abstract void confirmNavigation(java.lang.String confirmationToken)
Called by the DirtyPageHandler implementation when a navigation that would result in data loss occurs. The implementation of this method will call FacesContext.responseComplete().

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.

Parameters:
confirmationToken - Token representing any state that needs to be restored if the user confirms the navigation
See Also:
DirtyPageHandler.navigationConfirmed(java.lang.String), DirtyPageHandler.navigationCanceled(java.lang.String)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E10684-05


Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.