PrimeFaces.widget.DataList=function(b,a){this.id=b;this.cfg=a;if(this.cfg.paginator){this.setupPaginator()}};PrimeFaces.widget.DataList.prototype.setupPaginator=function(){this.cfg.paginator.subscribe("changeRequest",this.handlePagination,null,this);this.cfg.paginator.render()};PrimeFaces.widget.DataList.prototype.handlePagination=function(c){var d={};d[PrimeFaces.PARTIAL_SOURCE_PARAM]=this.id;d[PrimeFaces.PARTIAL_REQUEST_PARAM]=true;d[PrimeFaces.PARTIAL_PROCESS_PARAM]=this.id;d[this.id+"_ajaxPaging"]=true;d[this.id+"_first"]=c.recordOffset;d[this.id+"_rows"]=c.rowsPerPage;d[this.id+"_page"]=c.page;var b=jQuery(PrimeFaces.escapeClientId(this.cfg.formId)).serialize();b=b+PrimeFaces.ajax.AjaxUtils.serialize(d);var a=this;jQuery.ajax({url:this.cfg.url,type:"POST",cache:false,dataType:"xml",data:b,success:function(i){var h=i.documentElement,g=h.getElementsByTagName("list")[0].firstChild.data,f=h.getElementsByTagName("state")[0].firstChild.data,e=PrimeFaces.escapeClientId(a.id+"_list");PrimeFaces.ajax.AjaxUtils.updateState(f);if(a.cfg.effect){jQuery(e).fadeOut(a.cfg.effectSpeed,function(){jQuery(e).replaceWith(g);jQuery(e).fadeIn(a.cfg.effectSpeed)})}else{jQuery(e).replaceWith(g)}a.cfg.paginator.setState(c)}})};