[seam-commits] Seam SVN: r10195 - trunk/src/remoting/org/jboss/seam/remoting.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Mar 20 19:18:25 EDT 2009


Author: shane.bryzak at jboss.com
Date: 2009-03-20 19:18:25 -0400 (Fri, 20 Mar 2009)
New Revision: 10195

Modified:
   trunk/src/remoting/org/jboss/seam/remoting/remote.js
Log:
JBSEAM-4026

Modified: trunk/src/remoting/org/jboss/seam/remoting/remote.js
===================================================================
--- trunk/src/remoting/org/jboss/seam/remoting/remote.js	2009-03-20 23:01:25 UTC (rev 10194)
+++ trunk/src/remoting/org/jboss/seam/remoting/remote.js	2009-03-20 23:18:25 UTC (rev 10195)
@@ -694,9 +694,10 @@
         }
       }
       else
-        alert("There was an error processing your request.  Error code: " + asyncReq.status);
-    }
-    
+      {
+        Seam.Remoting.displayError(asyncReq.status);
+      }
+    }    
   }
 
   if (Seam.Remoting.encodedSessionId)
@@ -708,6 +709,11 @@
   asyncReq.send(envelope);
 }
 
+Seam.Remoting.displayError = function(code)
+{
+  alert("There was an error processing your request.  Error code: " + code);  
+}
+
 Seam.Remoting.setCallback = function(component, methodName, callback)
 {
   component.__callback[methodName] = callback;




More information about the seam-commits mailing list