UseCase: We have to manually remove the table filter values we've entered.Instead provide an action Button/Link with the following method on Button Action, to clear all the entered filter values and reset the table.
public void resetTableFilter(ActionEvent actionEvent)
{
FilterableQueryDescriptor queryDescriptor =
(FilterableQueryDescriptor) getEmpTable().getFilterModel();
if (queryDescriptor != null && queryDescriptor.getFilterCriteria() != null)
{
queryDescriptor.getFilterCriteria().clear();
getEmpTable().queueEvent(new QueryEvent(getEmpTable(), queryDescriptor));
}
}
No comments:
Post a Comment