/**
* Method for refreshing af:query component
* @param queryComponent
*/
* Method for refreshing af:query component
* @param queryComponent
*/
public static void refreshQueryComponent(RichQuery queryComponent) {
QueryModel queryModel = queryComponent.getModel();
QueryDescriptor queryDescriptor = queryComponent.getValue();
queryModel.reset(queryDescriptor);
queryComponent.refresh(FacesContext.getCurrentInstance());
QueryDescriptor queryDescriptor = queryComponent.getValue();
queryModel.reset(queryDescriptor);
queryComponent.refresh(FacesContext.getCurrentInstance());
}
No comments:
Post a Comment