Sometimes we observe that the value entered in the Oracle ADF af:inputText component doesn't get refreshed and the previous value is stored as it is. We can get rid of this using the following code
import oracle.adf.view.rich.component.rich.input.RichInputText;
import oracle.adf.view.rich.context.AdfFacesContext;
RichInputText rit = (RichInputText)JSFUtils.findComponentInRoot(id);
rit.setSubmittedValue(null);
rit.resetValue();
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(rit);
import oracle.adf.view.rich.component.rich.input.RichInputText;
import oracle.adf.view.rich.context.AdfFacesContext;
RichInputText rit = (RichInputText)JSFUtils.findComponentInRoot(id);
rit.setSubmittedValue(null);
rit.resetValue();
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(rit);
No comments:
Post a Comment