Follow by Email

Wednesday, 17 October 2012

Uncommitted/Unsaved Data Warning on page Navigation-Oracle ADF

When we visit some websites and try to close browser tab, it shows warning message like this image

Browser Confirmation Dialog when leaving page 
    To do this in Oracle ADF you have to do nothing complex, if you are using .jspx then it is so simple.

  1. Select af:document from page structure and go to property inspector, now Set UncommitedDataWarning to on.
    af:document tag in Oracle ADF

    UncommittedDataWarning property in ADF
    Now when you have uncommitted data in your page and you want to navigate yo other page or want to close same page it will show a message

    When Navigate to another page and page has Uncommitted Data-

    Warning Message when there is unsaved data on page
    When try to close tab and page has Uncommitted Data-

No comments :

Post a Comment