Primefaces Datatable Selectcheckboxmenu Filter Formatting Issue

Primefaces DataTable selectCheckboxMenu filter formatting issue

The problem was having the following entry in my custom CSS file which conflicted with the Primefaces.css

label {
float: left;
text-align: left;
margin-right: 0.5em;
display: block
}

How to save and restore filter state of primefaces datatable with costum filter (selectCheckboxMenu) via javascript?

You can use the new multiViewState feature implemented in Primefaces 6.1 to persist dataTable state.

Primefaces datePicker range filter end date issue

You can also opt to take care of this on the server side.

The range filter is handled by org.primefaces.model.filter.RangeFilterConstraint. You can overload this class in your project and modify the isInRange method to check for Dates the way you want to.

Or, if you are using a LazyDataModel, simply act on the provided org.primefaces.model.FilterMeta of MatchMode RANGE.

SelectCheckboxMenu - Disable all-selection

You can add css rule to your css file

#titel .ui-chkbox .ui-widget {
display:none;
}

You should add prependId="false" to your h:form , or in case you don't want to add prependId="false" you can change the #titel .ui-chkbox .ui-widget selector into something like #myForm\3A titel .ui-chkbox .ui-widget (to handle the : id seperator)


In case you want the entire filter row removed you can set

<p:selectCheckboxMenu filter="false"....


Related Topics



Leave a reply



Submit