Questions tagged [primefaces-datatable]

PrimeFaces p:dataTable component related questions

Showcase:

Documentation:

144 questions
38
votes
7 answers

Updating entire on complete of

I am having difficulty re-rendering a PrimeFaces Datatable once a cell has been edited. Changing the value in one cell may change entries in the other cells, hence the need to refresh the entire table. Here's the JSF page:
Franzl
  • 719
  • 1
  • 6
  • 13
22
votes
4 answers

Disable row selection for a few rows only in a p:dataTable

I would like to know if there is a way of disabling the radio-based row selection for a given set of rows in Primefaces, based on a bean property. Example: `
Redder
  • 1,398
  • 1
  • 11
  • 16
12
votes
4 answers

How can I initially hide columns in a p:dataTable with p:columnToggler

I'm using PrimeFaces v.5 with this version a new component is released that ColumnToggler, when view is rendered, refreshed all checkbox are checked as a default operation. What I need to do is; to uncheck some columns when I initialize the view,…
Ismail Sahin
  • 2,640
  • 5
  • 31
  • 58
11
votes
6 answers

Remove select all checkbox in PrimeFaces datatable

Is there a way to remove the select all check box on the header of the p:datatable. I need check box on the individual row but not on the header.
KCP
  • 312
  • 1
  • 7
  • 18
6
votes
2 answers
5
votes
1 answer

How to decrease request payload of p:ajax during e.g. p:dataTable pagination

I am using JSF 2.2 with Primefaces 5.1. There is an editable primefaces datatable with pagination enabled.
FuryFart
  • 2,304
  • 4
  • 27
  • 43
3
votes
1 answer

How to reset the sorting on dynamic colums at PrimeFaces?

I have dynamic columns which are sorted as well as filtered. I managed to clear the filters, but according to Primefaces there is no function to clear the sorting for the client API. My .xhtml:
Jasker
  • 53
  • 6
3
votes
1 answer

Primefaces cell edit leave in edit mode when validation fails

I am using p:dataTable with cell editing and validator on a p:selectOneMenu with editable=true . I want the cell edit state to stay in edit mode (second screenshot) if the selected p:selectOneMenu value or typed in value is invalid and show the red…
jeff
  • 3,618
  • 9
  • 48
  • 101
3
votes
1 answer

Using a custom global filter on p:dataTable

I am trying to implement a comma separated keyword search using global filter in PrimeFaces. If user types in word1,word2 in the global search, all the rows which have word1 and word2 should be returned. As of now, I was not able to find a…
Divya
  • 85
  • 1
  • 7
2
votes
0 answers

Migration Richfaces -> Primefaces : rich:collapsibleSubTable migration

I trie to migrate an page using richfaces to primefaces. I have a rich:datatable with multiple rich:collapsibleSubTable. I tried to replace that with p:datatable and p:subtable like this
schwuleur
  • 41
  • 2
2
votes
1 answer

How to check which primefaces ajax event triggered into java method

let's say we have two types of events that will be directed to the same method as mentioned in the below example and here is the bean method…
Bobstone
  • 23
  • 4
2
votes
1 answer

PrimeFaces DataTable rowSelect cannot check checkbox

I was trying to "link" and with so when datatable row is selected, the checkbox would check together and when checkbox is checked, datatable row is selected…
janksion
  • 53
  • 6
2
votes
1 answer

p:selectbooleancheckbox is moving when slected in a p:dataTable

I placed a p:selectBooleanCheckbox inside a p:dataTable in a JSF project. When the cell is selected the check box floats to the right. I know it's a css thing but i'm not sure how to fix it.
gesus
  • 471
  • 1
  • 10
  • 24
2
votes
2 answers

PrimeFaces 10: sortBy not working in p:dataTable

I migrated from PrimeFaces 6.1 to 10.0.0 and now sortBy of every p:dataTable I have in my project doesn't work. An example of my p:dataTable:
Davide Salsi
  • 193
  • 1
  • 3
  • 11
2
votes
0 answers

p:dataTable is not displaying while the value is fetched from the bean

Im trying to populate a dataTable but its not even showing in the browser and i think im doing everything right. I debugged and search al lot for this problem but couldn't fine anything that help me out. If any of you can help me, that would be…
1
2 3
9 10