Thursday, September 26, 2013

ADF 11G : Clearing af:query Programatically

  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;
    }