Sometimes we might want to undo all the changes made to a component on clicking a button or a command link etc. in the managed bean.
ADF framework provides the API ResetUtils achieve the same. This can be used as follows
import javax.faces.component.UIComponent;
import oracle.adf.view.rich.util.ResetUtils;
UIComponent comp = ADFUtils.findUIComponent("t1");
ResetUtils.reset(comp );
findUIComponent method can be found here
On executing the reset method, All values submitted will be reset to null or empty, so that editable components will pull their values from the model.
ADF framework provides the API ResetUtils achieve the same. This can be used as follows
import javax.faces.component.UIComponent;
import oracle.adf.view.rich.util.ResetUtils;
UIComponent comp = ADFUtils.findUIComponent("t1");
ResetUtils.reset(comp );
findUIComponent method can be found here
On executing the reset method, All values submitted will be reset to null or empty, so that editable components will pull their values from the model.
No comments:
Post a Comment