I have a list of objects (let's call each object a record object), shown through a component. Each record has a delete button column.
When a user clicks on the delete button of the record, a is shown, asking for user…
I've got a problem with the column tag in a primeface datatable. I've got a model with a lot of similar fields so in order to reduce code, I'm trying to have a custom made tag to fill each column.
So rather having to write something like
PrimeFaces has excellent keyboard support. See for example, the showcase of a selectable p:dataTable. When you click a row in the "Single with Row Click" table, you are able to use the arrow keys to navigate rows and use the enter to select the…
I am using primefaces(6.2) datatable, while using column filter I am observing a weird behavior, though all the columns (with outputText, inputText) retain the object value, columns with 'selectOneMenu', 'selectBooleanCheckbox' not retaining the…
I'm using a normal datatable on primefaces, but have an error when using both sortBy and filterBy at the same time:
javax.faces.FacesException: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled.
This is how…
Is it possible to get column names as a readable string from data table? I need to get them in my LazyDataModel class.
Here's the image of my datatable and columns;
I have a datatable with lazy data model and pagination. I want to disable default sorting when I click on "search" button and enable it again when I click on "display" button. So didn't put "sortBy" in my xhtml file and instead, I set it dynamically…
My DataTable's editMode is "row". So, the user clicks on a pencil icon to start editing a row and then clicks a check-mark icon to confirm and end editing. They do the same for some rows and then click on save button to save all edited rows in one…
I've coded a PrimeFaces (JSF / Java) p:dataTable that uses p:inputNumber for each cell. Everything works, but the table looks ragged due to the left-alignment of p:inputNumber's content. All of the formatting I've tried formats the control itself,…
I'm working with PrimeFaces 6.0. I'm creating a data table which uses lazy loading. I have set this.setRowCount(count) in my load method. My paginator is not shown correctly though (it only shows disabled previous, next, begin, end buttons).
When I…
In primefaces 6.1 we are using DataTableFeatureKey like below:
static Map FEATURES;
static {
FEATURES = new HashMap();
FEATURES.put(DataTableFeatureKey.FILTER,…
I can not to find class ShowcasesUtil, that is use to filters, sorting of PrimeFaces LazySorting, LazyFiltering. Example below:
public int compare(Customer customer1, Customer customer2) {
try {
Object value1 =…
We are currently using Primefaces version 8 and I am working on migrating us to version 12.
In the migration guide 8.0 -> 10.0.0, under DataTable, Breaking changes says this:
SortEvent: sorted datatable value is no longer passed to this…