Prevent overlapping Ajax requests

View: New views
2 Messages — Rating Filter:   Alert me  

Prevent overlapping Ajax requests

by Stefan Bley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it possible to disable input fields during an Ajax request invoked by DynaFaces.fireAjaxTransaction()?
This is important to prevent overlapping Ajax requests, i.e. it can't be triggered another Ajax request while there is still one in process.

Re: Prevent overlapping Ajax requests

by Roger Kitain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stefan Bley wrote:
> Is it possible to disable input fields during an Ajax request invoked by
> DynaFaces.fireAjaxTransaction()?
> This is important to prevent overlapping Ajax requests, i.e. it can't be
> triggered another Ajax request while there is still one in process.
>
>  
In Dynamic Faces, there is no such built in mechanism.  You have to do some
JavaScript coding.  However, the Ajax standardization in JSF 2.0
incorporates
a client side request queue to ensure exactly what you are asking.

-roger

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...