I have a complicate JSF that contain dataTable with filter in each one of the columns. In order to make sure that the generate button will fetch all the data first I need to cle
This is how i solved my problem.
RequestContext requestContext = RequestContext.getCurrentInstance(); requestContext.execute("PF('widget_orderDataTable').clearFilters()");
Hope its help.