p:ajaxStatus on cancel

UI Components for JSF
Post Reply
goutham.rao
Posts: 24
Joined: 29 Jan 2010, 16:27
Location: Newbury,United Kingdom

25 Aug 2010, 21:13

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
Primefaces 2.2.1
GlassFish V3.0, JSF 2.0.3
EJB 3.1,HIbernate 3.5
Coding on Netbeans 6.9.1

goutham.rao
Posts: 24
Joined: 29 Jan 2010, 16:27
Location: Newbury,United Kingdom

27 Aug 2010, 16:33

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
Primefaces 2.2.1
GlassFish V3.0, JSF 2.0.3
EJB 3.1,HIbernate 3.5
Coding on Netbeans 6.9.1

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 Aug 2010, 20:38

How jquery supports canceling in the middle of request? Not sure if cancel is a good fit for ajaxStatus.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests