TheCoder4eu / BootsFaces-OSP

BootsFaces - Open Source Project
Apache License 2.0
247 stars 102 forks source link

lazy dataTable #1023

Open chongma opened 5 years ago

chongma commented 5 years ago

i am using primefaces for lazy data tables and while i love prime i miss the bootsfaces look. it would be fairly easy to write a lazy loader wrapper similar to

import org.primefaces.model.LazyDataModel;
import org.primefaces.model.SortMeta;
import org.primefaces.model.SortOrder;

but i am not sure how easy it is to integrate into datatables.net

we could even build it on top of primefaces components?

i don't really want to rip off their stuff but it seems like a necessary feature?

jepsar commented 5 years ago

The closest thing to lazy loading on DataTables.net I could find is https://datatables.net/examples/server_side/pipeline.html

Edit: even simpler: https://datatables.net/examples/server_side/simple.html

Not too sure though if this would be useful in a JSF component...

chongma commented 5 years ago

@jepsar thanks. i didn't think to search the datatables.net website. those examples look like they would plug into a prime type lazy data model. we need to consider which attributes would need to be added to b:dataTable to control it