Hello There,
When I ajaxify using p:ajax events I run some custom javascript which outputs a boolean. p:ajax then uses this boolean value to cancel / continue with the ajax request. Is there any way of capturing the cancel event of the ajax request in p:ajaxStatus.
p:ajaxStatus only supports oncomplete,onerror,onprestart and onstart.
At the moment I manually clear the AjaxStatus message.
Any help would be much appreciated.
Cheers,
Goutham
p:ajaxStatus on cancel
-
- Posts: 24
- Joined: 29 Jan 2010, 16:27
- Location: Newbury,United Kingdom
Primefaces 2.2.1
GlassFish V3.0, JSF 2.0.3
EJB 3.1,HIbernate 3.5
Coding on Netbeans 6.9.1
GlassFish V3.0, JSF 2.0.3
EJB 3.1,HIbernate 3.5
Coding on Netbeans 6.9.1
-
- Posts: 24
- Joined: 29 Jan 2010, 16:27
- Location: Newbury,United Kingdom
Hi,
I have checked the code and the callback binding happens only for onerror,onsuccess and oncomplete. Jquery provides further events to hook on to like ajaxStop , i guess then this has to be added to the library. I will raise a ticket for this
Cheers,
Goutham
I have checked the code and the callback binding happens only for onerror,onsuccess and oncomplete. Jquery provides further events to hook on to like ajaxStop , i guess then this has to be added to the library. I will raise a ticket for this
Cheers,
Goutham
Primefaces 2.2.1
GlassFish V3.0, JSF 2.0.3
EJB 3.1,HIbernate 3.5
Coding on Netbeans 6.9.1
GlassFish V3.0, JSF 2.0.3
EJB 3.1,HIbernate 3.5
Coding on Netbeans 6.9.1
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
How jquery supports canceling in the middle of request? Not sure if cancel is a good fit for ajaxStatus.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 30 guests