Author: shane.bryzak(a)jboss.com
Date: 2009-12-05 12:27:17 -0500 (Sat, 05 Dec 2009)
New Revision: 11727
Modified:
modules/trunk/remoting/src/main/resources/org/jboss/seam/remoting/remote.js
Log:
Model API methods
Modified: modules/trunk/remoting/src/main/resources/org/jboss/seam/remoting/remote.js
===================================================================
--- modules/trunk/remoting/src/main/resources/org/jboss/seam/remoting/remote.js 2009-12-04
12:17:20 UTC (rev 11726)
+++ modules/trunk/remoting/src/main/resources/org/jboss/seam/remoting/remote.js 2009-12-05
17:27:17 UTC (rev 11727)
@@ -755,6 +755,38 @@
Seam.Remoting.loadingMsgDiv.style.visibility = 'hidden';
}
+/* Remote Model API */
+
+Seam.Remoting.Model = function() {
+ this.expressions = new Array();
+ this.beans = new Array();
+
+ Seam.Remoting.Model.prototype.addExpression = function(alias, expr) {
+ this.expressions.push({alias: alias, expr: expr});
+ }
+
+ Seam.Remoting.Model.prototype.addBean = function(alias, bean) {
+ var q = null;
+ if (arguments.length > 2) {
+ q = new Array();
+ for (var i = 1; i < arguments.length; i++) {
+ q.push(arguments[i]);
+ }
+ }
+ this.beans.push({alias: alias, bean: bean; qualifiers: q});
+ }
+
+ Seam.Remoting.Model.prototype.fetch = function(action) {
+
+ }
+
+ Seam.Remoting.Model.prototype.applyUpdates = function(action) {
+
+ }
+
+
+}
+
/* Messaging API */
Seam.Remoting.pollInterval = 10; // Default poll interval of 10 seconds