Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

prevent navigation on uncommitted data

Jan VerveckenMar 24 2013 — edited Apr 24 2013
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2013
Added on Mar 24 2013
8 comments
2,463 views