Monday, May 03, 2010

ADF:Check if there are pending changes in UI

Situations arise when we may need to check if there is any pending transactions in the ADF UI.
You can do it easily from ADFbc.

Use DBTransactionImpl.isDirty()

Or From ADF Faces side

BindingContext bctx = oracle.adf.controller.binding.BindingUtils.getBindingContext();
bctx.findDataControlFrame(bctx.getCurrentDataControlFrame()).isTransactionDirty();

1 comment:

Martin said...

Nice!

Another alternative for a IteratorBinding (for example a table-iterator)

DCIteratorBinding iter = (DCIteratorBinding)getBindings.get("MyIterator1"));
iter.getViewObject().getApplicationModule().getTransaction().isDirty());