2012-11-12 18 views
5

JSF uygulamasında p: remoteCommand kullanıyorum. Ben 7 farklı p var: remoteCommand fasulye farklı eylem çağırmak için ilan etti. Düğmeye tıklandığında, bu 7 uzaktan komut aynı anda çağrılır. JS işlevi çağrılır, ancak bir süredir sunucuya yapılan istek yürütülmez ve bu yalnızca IE'de gerçekleşir. Ben AJAX dönüş ediliyor hata dediği kontrol etmeye çalıştı ama olsun bütün xhr = hata, status = Bilinmeyen ve hata = tanımsız sadece IE 8 üzerindePrimefaces p: remotecommand IE 8'de çalışmıyor

test etti.

Benim fonksiyon ve p:

function loadResult() { 
    loadSmry(); 
    load1(); 
    load2(); 
    load3(); 
    load4(); 
    load5(); 
    load6(); 
} 

<p:remoteCommand id="loadId" 
       name="loadSmry" 
       async="true" 
       action="#{designBean.saveSmry}" 
       process="@this" 
       onsuccess="summaryCount=0;" 
       onerror="handleXhrError(xhr, status, error)" 
       update="logId"/> 

<p:remoteCommand id="loadId1" 
       name="load1" 
       async="true" 
       action="#{designBean.showChrt1}" 
       onstart="showAjaxLoader('begin',1)" 
       oncomplete="showAjaxLoader('success',1)" 
       onerror="handleXhrError(xhr, status, error)" 
       process="@this"      
       update="chart1" /> 

<p:remoteCommand id="loadId2" 
       name="load2" 
       async="true" 
       action="#{designBean.showChrt2}" 
       onstart="showAjaxLoaderForSummary('begin',2)" 
       oncomplete="showAjaxLoader('success',2)" 
       onerror="handleXhrError(xhr, status, error)" 
       process="@this"      
       update="chart2" /> 


<p:remoteCommand id="loadId3" 
       name="load3" 
       async="true" 
       action="#{designBean.showChrt3}" 
       onstart="showAjaxLoader('begin',3)" 
       oncomplete="showAjaxLoader('success',3)" 
       onerror="handleXhrError(xhr, status, error)" 
       process="@this"      
       update="chart3" /> 


<p:remoteCommand id="loadId4" 
       name="load4" 
       async="true" 
       action="#{designBean.showChrt4}" 
       onstart="showAjaxLoader('begin',4)" 
       oncomplete="showAjaxLoader('success',4)" 
       onerror="handleXhrError(xhr, status, error)" 
       process="@this"      
       update="chart4" /> 


<p:remoteCommand id="loadId5" 
       name="load5" 
       async="true" 
       action="#{designBean.showChrt5}" 
       onstart="showAjaxLoader('begin',5)" 
       oncomplete="showAjaxLoader('success',5)" 
       onerror="handleXhrError(xhr, status, error)" 
       process="@this"      
       update="chart5a chart5b" /> 

<p:remoteCommand id="loadId6" 
       name="load6" 
       async="true" 
       action="#{designBean.showChrt6}" 
       onstart="showAjaxLoader('begin',6)" 
       oncomplete="showAjaxLoader('success',6)" 
       onerror="handleXhrError(xhr, status, error)" 
       process="@this"      
       update="chart6" /> 
+0

İç içe geçmiş formlar için herhangi bir şans? – Daniel

+0

@Daniel Yuvalanmış form yok – user1817436

+0

neden bu kimlikleri? grafik5a grafik 5b; belki, chart5a chart5b; (boşluksuz), ayrıca, hangisinin sorun olduğunu görmek için komutları kaldırmayı deneyin ... – Daniel

cevap

0

Hepinize uzak komutlar üzerinde async="true" kullandığınızı görebilirsiniz: RemoteCommand takip gibidir. Fasulyenin tipine bağlı olarak, bu sorunlu olabilir. Bu komutları eşzamansız şekilde çalıştırmaya çalışıyorsunuz. Bu kesinlikle gerekli ise, yanıt vermeyebilir, ancak lütfen async="true"'u async="false" olarak değiştirin. Bunun probleminizi çözmesi oldukça olasıdır.

Bu sorun, aynı zamanda, forum numaralı ilk raporlarda da bildirilmiştir ve bu da yardımcı olmuştur.

İlgili konular