Sometimes we need to check for uncommitted data on page and perform actions according to that, Suppose there is a button to navigate to another page but only if there is no uncommitted data in current page
We can use uncommitted data warning property of af:document to show an alert dialog but in that way, we can't execute our custom logic
Previously I have posted about checking dirty data of a transactional data control but in that, we need to check that for each data control separately that is rendering on page