[
https://issues.apache.org/jira/browse/TOBAGO-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henning Nöth resolved TOBAGO-2521.
----------------------------------
Fix Version/s: 6.11.1
Resolution: Fixed
> Queue for Ajax requests
> -----------------------
>
> Key: TOBAGO-2521
> URL: https://issues.apache.org/jira/browse/TOBAGO-2521
> Project: MyFaces Tobago
> Issue Type: New Feature
> Components: JavaScript
> Affects Versions: 6.11.0
> Reporter: Henning Nöth
> Assignee: Henning Nöth
> Priority: Major
> Fix For: 6.11.1
>
>
> Currently every clickable-element (e.g. button) call the faces.ajax.request()
> JS method. The consequences are, that if a user click multiple times on the
> "2"-button of the sheet paging, than the sheet will reload multiple times
> instead of only once.
> An Ajax queue should be implemented as follows:
> * Only one request is active at the same time.
> * Ajax requests are stored in a queue.
> * If a button has an active request (not stored in the queue), a second
> click on the same button is ignored.
> * If a button has an Ajax request stored in the queue, a second click on the
> same button moves the request at the end of the queue.
> For example:
> button 1 click -> Ajax request executed (still running)
> button 2 click -> queue contains: 2
> button 1 click -> Ajax request still running, click is ignored
> button 3 click -> queue contains: 2, 3
> button 2 click -> queue contains: 3, 2
> After the Ajax request for button 1 finished, the request for button 3 is
> executed.
>
> The queue should be easily accessible by using "tobago.ajax.request" instead
> of "faces.ajax.request" in a JavaScript.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)