This content has been marked as final.
Show 2 replies
-
1. Re: Where could I find the document of object A4j.AJAX?
sergeysmirnov Apr 8, 2008 12:41 PM (in response to liuliu)the oncomplete attribute equals to what you expect from "A4J.AJAX.onUpdated"
-
2. Re: Where could I find the document of object A4j.AJAX?
liuliu Apr 9, 2008 4:43 AM (in response to liuliu)hi sergey,
oncomplete is good for the operation special of every single ajax request, but It is not suit of what i am waiting for. I need somewhere to centralize the display of all faces-messages created by ANY ajax request. If i use oncomplete, i need add the js function to show the modalpanel in oncomplete of EVERY ajax call,that is repetitive. actually i use a a4j:poll to send a Additional ajax request, then use the oncomplete of this request, but i don't like this solution very much.
What do you think of?
here is my code with jquery.ready<h:inputText id="maximumSeverity" value="#{facesContext.maximumSeverity.ordinal}" />
jQuery(document).ready(function() { if($('maximumSeverity').value>0){ Richfaces.showModalPanel('modalerror',{}); } });