Questions tagged [primefaces-datatable]

PrimeFaces p:dataTable component related questions

Showcase:

Documentation:

144 questions
1
vote
1 answer

Stop/Cancel Primefaces dragging action pressing Esc key

I want to be able to stop / cancel the dragging action once it has started, for example pressing Esc key. I'm working basing on a Primefaces Showcase example. https://www.primefaces.org/showcase/ui/dnd/dataTable.xhtml
1
vote
1 answer

p:dataTable select single row using radioButton & single row select

im using primefaces, come from this Post without answer. Is it possible to select data from a row with RadioButton and also select by clicking on the row? when testing this code it works but RadioButton click didn't work
ALDA
  • 11
  • 2
1
vote
0 answers

Combine Drag&Drop and Reorder in a p:dataTable

I need to combine Drag and Drop and Reorder on a DataTable row. I know that there are ways to do this on different columns (like one column for the reorder, the other one for Drag and Drop), but I need to do it on one Element. I tried different…
Sheena
  • 107
  • 9
1
vote
0 answers

p:dataTable filter/sort functions not working inside p:carousel

I have created a with an embedded with tabs and in one of the tabs I have a but I am noticing that actions like Pagination, Filtering and Sorting do not work in my datatable when the datatable is inside a…
NickAth
  • 1,089
  • 1
  • 14
  • 35
1
vote
1 answer

How to prevent p:columnToggler from showing scrollbars?

i'm using Primefaces 6.2 with a dataTable and a columnToggler to hide/display some of the colums of the table. Here the xhtml code
1
vote
1 answer

Primefaces get name of sorted column

I need to get the name of the sorted/filtered column in my DataTable. With the ajax-event "filter" I get the filtered value and dthe column name. For the sorting I used the even "sort" but couldn't find the method which returns me the name of the…
C0d3R
  • 25
  • 4
1
vote
2 answers

How move between row and page in Primefaces Datatable

I want a code that move between row up and down in datatable with put two buttons and in last row go to next page. I can write a code that move between row but i can't go to next page in last row. my code is here and it has two function for up and…
sami loe
  • 13
  • 2
1
vote
1 answer

Alternative to rich:extendedDataTable in PrimeFaces 6.1

We are currently migrating our application which was written in richfaces to primefaces. I am looking for alternative for rich:extendedDataTable in primefaces. the extended data table does something like this is there a way to achiveve this in…
user1734698
  • 157
  • 2
  • 2
  • 17
1
vote
0 answers

How to get column by filter key in p:dataTable

Is there any way how to get column instace by filter key? Suppose you have By calling DataTable#getFilters() you will obtain map containing entry {id=...} where id…
matoni
  • 2,479
  • 21
  • 39
1
vote
0 answers

Primefaces datatable selection malfunctions after update

I am facing a problem with the update of the datatable component in the primefaces. My goal is to update the datable and the selected row of the table to remain highlighted. Instead of this I have the following: The 1st, 3rd, 5th,... selected…
evaliotiri
  • 33
  • 1
  • 9
1
vote
1 answer

Two Primefaces datatables on same page cause filtering problems

I have a single page which includes two datatables. Their data are lazy loaded and paginated. To retrieve the rows that i need, i override the filterMap for the load() function. I pass this filterMap on the initialization of the LazyResult list.…
Stephan
  • 696
  • 15
  • 37
1
vote
1 answer

Primefaces event pass attribute only first time

I got an issue for a while and I can't get rid of it. In my data table I have a column with a button to display a dialog with further information on click. When I click the first time on the button the dialog opens with the right values, but when I…
Rémi Hirtz
  • 113
  • 3
  • 14
1
vote
0 answers

How to conditionally display columns of a PrimeFaces DataTable?

i have a parent class including two others that inherit from this parent class and i retrieve a list of objects from this parent class and I have a datatable share in two parts using column group to represent each object that arise from the parent…
CHARAFI Saad
  • 1,340
  • 3
  • 16
  • 36
1
vote
1 answer

How to custom sort a PrimeFaces dataTable column

I am trying to implement a sorting function on a PrimeFaces dataTable. I have created a list of model objects. We have an issue with sorting order of the table.The sorting column contains integers and string values. When I apply default sort…
Ssv
  • 1,059
  • 4
  • 14
  • 25
1
vote
2 answers

How can I export numbers in the correct type using p:dataExporter?

I am using PrimeFaces dataExporter for exporting my datatable to an Excel file. The problem is that numbers are exported as text. How can I export my numbers as integer and double?
user2231498
  • 37
  • 1
  • 7