Questions tagged [lazydatamodel]
25 questions
11
votes
0 answers
Avoiding a piece of boilerplate code resetting page boundaries (of p:dataTable) being repeated in managed beans
While deleting rows from an iterating component like a , the current page needs to be reset to its immediate previous page, if all of the rows in the last page have been deleted. This is unfortunately not automated in with…

Tiny
- 27,221
- 105
- 339
- 599
6
votes
2 answers
Overriding/implementing getRowKey() and getRowData() methods, when there is a composite primary key which combines multiple columns as a row key
I have a table in MySQL database. Unfortunately, there is a composite primary key which is needed for JAAS authentication/authorization in GlassFish Server.
mysql> desc group_table;
+---------------+--------------+------+-----+---------+-------+
|…

Tiny
- 27,221
- 105
- 339
- 599
1
vote
1 answer
Lazydatamodel NotSerializableException sublist
I implemented LazyDataModel using primefaces tutorial and facing the problem.
If I return list.sublist(...) - everything works fine, but I get Exception:
java.io.NotSerializableException: java.util.ArrayList$SubList.
I found out that List…

Anton Petrovskyi
- 442
- 5
- 18
1
vote
1 answer
Primefaces LazyDataModel: (Outdated)
I have a huge list of objects, each of them contains number of images. I want to use lazy loading to fetch them partially. And I want to understand how to use LazyDataModel and how it works.
Initially I thought that I have to save only ids of…

Anton Petrovskyi
- 442
- 5
- 18
1
vote
3 answers
1
vote
1 answer
PrimeFaces LazyDataModel#load() method not invoked anymore after adding OmniFaces
PrimeFaces LazyDataModel worked before adding OmniFaces jar into pom.xml.
It invokes load() method of LazyDataModel.
LazyPostDataModel.java
public class LazyPostDataModel extends LazyDataModel {
private PostService postService;
private…

Zaw Than oo
- 9,651
- 13
- 83
- 131
0
votes
0 answers
The values of one object affect and change the values of other objects
The problem is that when a person's Doctorate school information changes, other school information also changes. İt has degree title, school and department values. For example, the Master's, Bachelor's, Associate's and high school information cannot…
0
votes
1 answer
method count(JobViewWrapper) is already defined
I'm currently learning spring boot and encounter an error message
method count(JobViewWrapper) is already defined
yes it's because it has 2 of the same method name , but the method has 2 separate function , the first one is to count all the job…

Maxes
- 23
- 6
0
votes
0 answers
Delete the last row in the last page LazyDataModel
I have 21 records (N*10 + 1 records) and two pages, each page show max 10 records. When I delete the last record( It means the 1st record of the third page ), the browser will show the 2nd page with no record. If I want to see the record, I had to…

drkfhvn
- 1
0
votes
0 answers
Columns (table body) not visible in datatable when using lazydatamodel
Using LazyDataModel does not display columns in the datatable.
I have implemented custom LazyDataModel and I have implemented load method init. However, when I pass the datamodel as a value to the datatable, the columns are not rendered/displayed.…

user1734698
- 157
- 2
- 2
- 17
0
votes
0 answers
After adding LazyDataModel Editing and Delete not working
I didn't found a good answer so this problem. Maybe I just need to understand how to handle it. I implemented via contextMenu a menuItem to delete selected rows. That doesn't work anymore. Furthermore the editing does not working anymore. I have…

CptDayDreamer
- 1,526
- 6
- 25
- 61
0
votes
1 answer
Primefaces datatable LazyDataModel create new row
I have a primefaces datatable which uses LazyDataModel instead Collection.
I need to implement a button which create a new row in the table (empty row in last row of actual page in datatable).
I have tried…

Lucke
- 316
- 6
- 18
0
votes
0 answers
primefaces LazyDataModel executed getRowData(String rowKey) before load()
My problem is the same this link, and I found that primefaces's LazyDataModel executed getRowData(String rowKey) before load(params). Is there any problem if getRowData execute after load?

xmcx
- 283
- 3
- 18
0
votes
1 answer
Problems in LazyDataModel. Don't reset the first parameter
I have a problem with a LazyDataModel (list) in JSF. The problem is the next:
I have a xhtml with a search form and a list of results of that search. I do a first search and show on this pagined list, when I move on about the pages and I have, for…

agu
- 35
- 5
0
votes
0 answers
Primefaces LazyDataModel return empty List
I am developing an app to view emails.
The inbox is often very large and I want to use LazyDataModel to extract them by parts.
Data extraction works, but the init() function apparently first renders and then extracts…

Alex Cba
- 16
- 2