-
1. Re: Rich:datatable : clientsRow ajax loading, loading image.
jhuska Jul 2, 2012 8:39 AM (in response to popo_joe)Hello John,
I am not sure whether I understand you correctly. Do you mean something like in this example:
the spinning circle while you are writting into the inputs ?
-
2. Re: Rich:datatable : clientsRow ajax loading, loading image.
popo_joe Jul 2, 2012 10:54 AM (in response to jhuska)Hello juraj,
I would like to display a spinning circle when the user is scrolling poutside of the clientsRow loaded rows in the rich:datatable.
cliensRow is the number of rows loaded to the browser.
i have a huge datatable with 5000 rows, and i am loading 100 rows at a time, when the user scrolls outside of those 100 loaded rows, he can only see blank space, until the next 100 rows are displayed. I just want to put a loading image in the blank space.
-
3. Re: Rich:datatable : clientsRow ajax loading, loading image.
jhuska Jul 2, 2012 11:50 AM (in response to popo_joe)I have achieved your your desired behavior when I put a4j:status component outside the rich:extendedDataTable component.
So in this example:
http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=extendedDataTable&skin=blueSky
the end of facelet will look like:
<rich:column>
<f:facet name="header">
<h:outputText value="Days Live" />
</f:facet>
<h:outputText value="#{car.daysLive}" />
</rich:column>
</rich:extendedDataTable>
<a4j:status >
<f:facet name="start">
<h:graphicImage value="path/to/spinning/image.gif"/>
</f:facet>
</a4j:status>
</h:form>
Is this a solution to your problem ?
-
4. Re: Rich:datatable : clientsRow ajax loading, loading image.
robert.raksi Jul 16, 2012 7:45 AM (in response to jhuska)Your proposed solution did not work for me. I have a view level a4j:status component but the extendedDataTable does not use it. It does not have a status attribute eighter nor an event for ajax load.