Mitkees & Webcenter

Into the charm of Oracle Webcenter and ADF

Resetting form in ADF popup / Reset Any component


While developing a Form on ADF pop-up I have learned that the pop-up is fetched once on page load. On canceling the pop-up & open it again it still persists its data which is not what we all need.
I have tried many ways to reset the form as setting contentDelivery=”lazyUncashed” , resetting all the fields programmatically , delete dirty data & clear VO cache associated with the form. Until i found the magic line which resets the component as it wasn’t fetched before
UIComponent myPopupComponent = actionEvent.getComponent();
oracle.adf.view.rich.util.ResetUtils.reset(myPopupComponent);

2 responses to “Resetting form in ADF popup / Reset Any component

  1. OwenKong (@OwenKong5813) December 6, 2016 at 1:25 pm

    Good job, we met same problem, perfect solved it using your magic lines.

  2. Marlon Figueroa September 17, 2019 at 2:07 am

    You saved my life!

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.