Skip to content

Datatable : FilteredValue always null #2961

Discussion options

You must be logged in to vote

@kurtomerfaruk i fixed your example:
discussion-2961.zip

I think your issue is that Ajax Filter is Before the filtering not AFTER. The docs say https://primefaces.github.io/primefaces/15_0_0/#/components/datatable?id=ajax-behavior-events "On Filtering" which implies its before the filtering occurs. You want it AFTER the filtering has occurred but i am pretty sure its before to give the user the opportunity to do something before filtering.

The AJAX filter event provides you the Filter Meta to manipulate.

public class FilterEvent extends AbstractAjaxBehaviorEvent {

    private static final long serialVersionUID = 1L;

    private Map<String, FilterMeta> filterBy;

    public FilterEvent(U…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@melloware
Comment options

@melloware
Comment options

Answer selected by kurtomerfaruk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Workaround Workaround for the issue is found
2 participants