p:ajaxStatus oncomplete has no xhr, status

UI Components for JSF
Post Reply
kya
Posts: 31
Joined: 08 Oct 2010, 10:57

07 Feb 2011, 16:37

Hi,

after some trial and error it seems that the p:ajaxStatus oncomplete attribute does not pass xhr, status and args as parameters. Is this a bug or a feature? Is there a workaround?

thanks

Kuros

kya
Posts: 31
Joined: 08 Oct 2010, 10:57

08 Feb 2011, 18:22

following snippet (thanks to http://primefaces.prime.com.tr/forum/vi ... 1&start=10) in the page header solved my problem:

<script type="text/javascript">
/* <![CDATA[ */
new PrimeFaces.widget.AjaxStatus('uniqueIdentifier').bindCallback('ajaxComplete',function(event,request,settings){

alert("debug: " + request.status);
});
/* ]]> */
</script>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 42 guests