prevent navigation on uncommitted data
hi
Please consider the example application created using JDeveloper 11.1.2.3.0
at http://www.consideringred.com/files/oracle/2013/UncommittedDataReviewApp-v0.01.zip
It contains a page which has an af:document with uncommittedDataWarning="on" [1], and next to a regular af:commandLink also an af:commandLink with immediate="true" combined with an af:checkUncommittedDataBehavior component [2].
It allows to get warnings like
"This page contains uncommitted data.
Would you like to perform navigation?
Pres OK to continue, or Cancel to abort navigation."
which allow you to choose if you want to continue the navigation or not.
See also the screencast at http://screencast.com/t/IBujeLmKE
question :
- (q1) What would be the preferred (and future proof) way to prevent navigation on uncommitted data (instead of just a warning)?
- [1] see http://docs.oracle.com/cd/E35521_01/apirefs.111230/e17491/tagdoc/af_document.html
- [2] see http://docs.oracle.com/cd/E35521_01/apirefs.111230/e17491/tagdoc/af_checkUncommittedDataBehavior.html
many thanks
Jan Vervecken