Questions tagged [primefaces-datatable]

PrimeFaces p:dataTable component related questions

Showcase:

Documentation:

144 questions
0
votes
0 answers

Autoincrement of rows(id) in primefaces and row addition and deletion on basis of input

** Requirements - Wanted to take the input text number and on click of add row button input number should be added in terms of rows For Eg - I am inserting 2 then there should be 2 rows added and in id column it should have 1 then on second row…
Swagnash Thor
  • 19
  • 1
  • 10
0
votes
0 answers

Datatable Filter JSF 2.4 with PrimeFaces Problem

I'm trying to add a filter in my datatable, but it's not working. I also tried with global filter but the result was the same. I need my datable get filtered by this 2 basic columns (nucleo and localizacao). Below my Bean and also the…
0
votes
1 answer

CheckAll for the checkbox disabled but do not disable childs checkbox

I'm currently working with Primefaces, I have a datatable component and I render some records. When I edit inline-edit some records, I want to avoid the customer to click at the header checkbox to select all checkboxes, I like the customer to check…
digoferra
  • 1,001
  • 3
  • 17
  • 33
0
votes
1 answer

Insert a Static DataTable in Primefaces

My question is the following: how can I insert a DataTable with static rows and static columns? These columns and rows will always have the same value. I have the following table with all the rows and columns with static data but this does not work…
danimunoz
  • 1
  • 2
0
votes
1 answer

Primefaces datatable filtered rows become blank after sort

My Primefaces table is non-lazy loaded, displays POJOs and support default filtering and sorting. Filtering works fine alone, sorting works fine alone. But when I type something in any column's filter, and then click a sort key (on any column), all…
cpliu338
  • 645
  • 1
  • 7
  • 20
0
votes
0 answers

Misaligned columns in Primefaces datatable

I'm trying to make a datatable showing column as easy as possible - like auto width. It misaligns the columns compared to the header, like these: My code looks like this:
v-peter
  • 1
  • 2
0
votes
0 answers

Primefaces nested Datatable RowEdit adding the same sell to parrent Datatable(UI only) tree

Currently I am facing a datatable rendering issue. I have a datatable with order details with row expansion. When I click on the expansion arrow it shows line item details in another datatable. Also have a + button to add new order and one more…
SRK
  • 130
  • 1
  • 9
0
votes
0 answers

Index of DataTable Row on which selectOneMenu Item is selected

I am trying to Implement a editable DataTable, with selectOneMenu in one of the columns. How to get the selected Dropdown value along with its corresponding rowkeyId. The approach I was following is to trigger itemSelect ajax event get the selected…
Shubha
  • 3
  • 2
0
votes
1 answer

Clear PrimeFaces TreeTable selection

How to implement a "Clear All Selection" button which will uncheck all selected things from a TreeTable implemented using PrimeFaces 6.2
Shubha
  • 3
  • 2
0
votes
0 answers

Primefaces remoteCommand refreshing datatable automatically, setting to first page of DataTable

When Im on other than frist page of DatTable and im using button from rowExpansion or even commandLink used in row, page is beeing set to first automatically when this…
l_wiejek
  • 21
  • 4
0
votes
0 answers

Primefaces datatable scroll

I have a primefaces datatable and I want to scroll it I disable scrollable=true and add css for scroll table but something get wrong : the header of datatable doesn't fix and scroll with body I add this css only…
0
votes
1 answer

Primefaces datatable filter event or tap not working in mobile browser (iPhone, iPad & Android)

I am working in jsf web application, here primefaces datatable filter is working fine but same application open in safari browser or chrome browser in mobile (like iPad,iPhone & Android). The issue I am getting is, Primefaces datatable filter touch…
0
votes
0 answers

Access Non-Lazy Page Data on Primefaces Datatable

I have a DataTable without lazy loading and paging enabled. Can I access to the requested page data before rendering for some extra modification on that specific page only ? One can ask, why not modify before setting the data ?, because data coming…
Olgun Kaya
  • 2,519
  • 4
  • 32
  • 46
0
votes
1 answer

How to trigger action on primefaces datatable row expansion only not rowToggle

I need the action to be triggered when expanding a row only, not when collapsing it, so basically rowToggle event doesn't work for me as it executes in both expanding and collapsing events
zyydoosh
  • 387
  • 2
  • 14
0
votes
1 answer

How to select row of PrimeFaces dataTable via hover/mouseOver event

I have a dataTable, to which I want to add column with a Delete button for each row. My issue is, that I don't know how to change the currentItem member variable of my bean class, before the delete method is called in the command button's…