ADF 11G : Clearing af:query Programatically
public String customClearAFQuery() {
RichQuery queryComp = qryId1; //qryId1 is the Id of af:query
QueryModel queryModel = queryComp.getModel();
QueryDescriptor queryDescriptor = queryComp.getValue();
queryModel.reset(queryDescriptor);
queryComp.refresh(FacesContext.getCurrentInstance());
return null;
}