Primefaces Datatable Selection Large Dataset - jsf

My application is using:
WildFly 8.2
Mojarra 2.2.8-jbossorg-1 (the one that comes with WildFly).
Primefaces 5.2
JDK8
There's a page where I need to load many files (around 12k) and then show their names to the user so he/she can choose which ones they want to pick up.
And I'm able to show my datatable with the files as expected.
The problem starts when I select more than 1k rows and try to go to the next page of the datatable.
It gets incredibly slow.
I use multiple selection with checkboxes, and from what I saw every time I change the page it sends every checkbox as a parameter from the request.
I really have no idea of how to solve this. Hope someone might help with any suggestion.
Thanks

Related

JSF 1.2 checkbox How to get instant response?

I have a column of checkboxes and I want to get this effect that when you select 3 of them the rest of checkboxes disables. I've tried everything but I can't make it to do it instantly after clicking on a checkbox (it happens when I reload a page). Every response for that problem is using <f:ajax> but I'm using JSF 1.2 (and I can't use JSF 2 in this project). Is there any way to get through my problem?
Thanks in advance!

Primefaces performance when having a lot of Buttons [duplicate]

I am trying to generate a table dynamically using HtmlDataTable in JSF. When I am giving the number of rows and columns greater than 25 each, some of the cells are not getting populated only in IE and it's getting very slow. However, I can see the value when debugging the code using Firebug. It is working fine in Firefox and Chrome.
How is this caused and how can I solve it?
Internet Explorer is known to have an extremely poor table renderer. Especially when the columns and table nesting goes overzealous.
There's no other solution than making your table smaller by introducing lazy loading and pagination so that only 10~100 rows will be displayed at once. Add if necessary search filters. Additional benefit is that it's also much more user friendly. Google for example also doesn't show all the zillion website links in a monster table without filtering and pagination.
If you happen to use PrimeFaces, use <p:dataTable> with LazyDataModel.
See also:
Efficient JSF Pagination
Update as per the comments, there is not really other alternative if you can't change your server side code. Your best bet is probably to inform the enduser that s/he should be using a real browser instead.
E.g.
<script>
var ie = /*#cc_on!#*/false;
if (ie) {
window.location = 'some_page_which_recommends_different_browser.xhtml';
}
</script>

Primefaces autocomplete is very slow to load large data in JSF page

I'm trying to implement autocomplete search using 'Primefaces Autocomplete' tag for morethan one lack options to show. When I enter a character in the autocomplete box,which is having 30000 options, it is taking more than 40 seconds to update the options in the autocomplete box and the screen is getting struck until the list is updated. In the server side it's taking 15 milliseconds to iterate but when returning to the Jsf page , it's taking more time. Please assist me on this. Thanks in advance.

xPages dataTable page

I have a data table on my xPage that shows e.g. 10 rows (repeat limit, rows="10").
How do I know what's the current page number when I navigate through the records by using pager?
After switching between pages I'd like to return back and open dataTable exactly on same page I left:
getComponent("dataTable1").gotoPage(<page number I save>)
I think the best route to get the behavior you want is to use the <xe:pagerSaveState/> control from the ExtLib, which does the job of storing the state of a given pager and restoring it when you go back to the page. Brad Balassaitis has an example of how to use it here: http://xcellerant.net/2013/08/08/xpages-data-views-6-pager-save-state-control/

how to render primefaces dynaform with ui-repeat,p:datalist

I'm trying to create multiple dynaforms in my page which will repeat multiple times by clicking button.
To do this i've used ui-repeat but this is not displaying any dynaform at all.As an alternative solution i have used primefaces datalist(or datatable) they are able to repeat the dynaforms. But here in this solution i'm facing another problem with pe:timepicker, that is if i change value in one time picker that effect all the time pickers in repeated dynaforms.
Is there any solution for repeating dynaforms in ui-repeat. How to isolate the timepicker value change specific to dynaform.
I am using JSF2.1.24,primefaces 4.0-snapshot and primefaces-extention-1.0.0.RC1.
ui:repeat was always buggy. And yes, DynaForm works within PrimeFaces data iteration components. How do you change value in pe:timepicker? There are some tricks for DynaForm. See e.g. this one.
I would suggest you ask in our sub-forum for more information.
Please also use the last final releases 4.0.0 and 1.0.0 respectively.

Resources