Questions tagged [primefaces-datatable]

PrimeFaces p:dataTable component related questions

Showcase:

Documentation:

144 questions
0
votes
1 answer

Primefaces Datatable restrict Reorder

I need to restrict the reorder-event of a PrimeFaces Datatable, so that leaving the table horizontally isn't possible . Optionally I would like to add a border when an element ist dragged, so that the user can see, where he can drop the element. I…
Sheena
  • 107
  • 9
0
votes
0 answers

How to stop printing a certain type of exception from certain method in Java?

This might be an odd question but we are required to suppress a certain type of exception from a certain method from printing on to our debug console. This exception I am talking about is happening on LazyDataModel for Primefaces where the setter…
Obaid
  • 75
  • 2
  • 9
0
votes
1 answer

Primefaces lazytable sorting change first sorting order

is there any way to allow, after the first request to sort a particular column, not to be listed first in ascending order, but first in descending order? description: If I need to sort the column in descending order, it is necessary to first click…
0
votes
0 answers

Primefaces p:rowExpansion shows random data

I implemented the from PF in my HTML, as seen below.
Arthur Hej
  • 23
  • 5
0
votes
1 answer

Deleting P:DATATABLE row by delete button against each row

I have a table and data in it. I have delete and edit button in the last column against each row of table. I want to delete any row from the table pressing Delete button against it. button I need the userId in the row on backend . how can I get that…
Sajjad Haider
  • 51
  • 1
  • 3
0
votes
0 answers

Error of filters in primefaces 8.0 on table with row virtualization enabled

I am using Primefaces 8.0. A table with frozen columns and filters on columns in the frozen part and scrolling part. Row virtualization enabled. Button code:
Enter
  • 1
  • 1
0
votes
0 answers

Primefaces datatable sorting issue

Problem with primefaces datatable. Hi, I’m using Primefaces and 6.2 and I have issue with datatable. I have lazy data model, with load method: load(int first, int pageSize, String sortField, SortOrder sortOrder, Map filters) So, when…
Newbie990
  • 31
  • 1
  • 6
0
votes
1 answer

SortBy from p:dataTable not working with dataModel

Im trying to implement a sort by in a column inside a p:dataTable, i use a dataModel to get the data to the table, if i use a arrayList to get the data the sort by works, theres a way to make the sort by work with a dataModel? The error i get when…
FoxyAri
  • 23
  • 4
0
votes
1 answer

How to filterBy on a Date type in a p:column

i have a problem with filterBy when the data is a date but it works with other types of data,i used a filterFunction which i have already specified in my controller but it doesn't work nothing change when i filter. here is my code: my .xhtml…
0
votes
1 answer

In Primefaces Datatable does not sort with sortBy on the column

I decided to ask here so I will solve my problem. Before I write to you I can ensure you that I googled a lot, but no answer found. In my case IN PRIMEFACES, the sortBy, and filterBy in the p:column in p:dataTable, do not work. Lets start with the…
0
votes
0 answers

Datatable filters not working after primefaces upgrade 8

Upgraded application from primefaces 5.3.6 to 8 version.Filters stop working in below data table.I didn't get any error in console.Looks like filters are not responding.Sorting working fine. XHTML
priya
  • 361
  • 1
  • 4
  • 18
0
votes
1 answer

Primefaces Datatable filtering issue for drop down as data input

I have a drop down (p:selectOneMenu) as the input field in the Primefaces 8.0 datatable row, after I select the value in the drop down, if I sort it the selected value can be kept after ajax submit. However if I input a filter that filter 0 rows,…
0
votes
0 answers

Multi Line Header in p:datatable

I intend to build, using Primefaces and using the tag p:dataTable, something like this: So the goal is for the second row headers to be twice as tall as the first row headers. I have this code:
0
votes
1 answer

How to use "sortBy" in a p:dataTable with HashSet collection

UPDATED I have the following dataTable: