Wednesday, February 26, 2014

Reset Input Text Field ADF

       
RichInputText input = (RichInputText)
JSFUtils.findComponentInRoot(id);
input.setSubmittedValue(null);
input.resetValue(); // input.setValue("") doesn't work here
AdfFacesContext.getCurrentInstance().addPartialTarget(input);

2 comments:

Anonymous said...

Hi
can you tell me what package should I add to my project and what API should I import? when I use your code I receive "Illegal internal package import. Please use public API" "and Method 'findComponentInRoot' not found" errors.
thank you very much

Vijay Sadhu said...

http://jdeveloper-adf.googlecode.com/svn/trunk/TGPrototype2/ViewController/src/com/tgslc/defaultManagement/utils/JSFUtils.java