[jboss-user] [JBoss Seam] - Re: @WebRemote: problem with client site instantiation of ob

rlhr do-not-reply at jboss.com
Sat Aug 5 05:47:39 EDT 2006


Hello,

So I got time to do more testing. Now the interface generated for the SelectItem is fine and got all the methods defined.

Seam.Remoting.type.javax$faces$model$SelectItem = function() {
  |   this.value = undefined;
  |   this.label = undefined;
  |   this.disabled = undefined;
  |   this.description = undefined;
  |   Seam.Remoting.type.javax$faces$model$SelectItem.prototype.getValue = function() { return this.value; }
  |   Seam.Remoting.type.javax$faces$model$SelectItem.prototype.getLabel = function() { return this.label; }
  |   Seam.Remoting.type.javax$faces$model$SelectItem.prototype.isDisabled = function() { return this.disabled; }
  |   Seam.Remoting.type.javax$faces$model$SelectItem.prototype.getDescription = function() { return this.description; }
  |   Seam.Remoting.type.javax$faces$model$SelectItem.prototype.setValue = function(value) { this.value = value; }
  |   Seam.Remoting.type.javax$faces$model$SelectItem.prototype.setLabel = function(label) { this.label = label; }
  |   Seam.Remoting.type.javax$faces$model$SelectItem.prototype.setDisabled = function(disabled) { this.disabled = disabled; }
  |   Seam.Remoting.type.javax$faces$model$SelectItem.prototype.setDescription = function(description) { this.description = description; }
  | }
  | 
  | Seam.Remoting.type.javax$faces$model$SelectItem.__name = "javax.faces.model.SelectItem";
  | Seam.Remoting.type.javax$faces$model$SelectItem.__metadata = [
  |   {field: "value", type: "bean"},
  |   {field: "label", type: "str"},
  |   {field: "disabled", type: "bool"},
  |   {field: "description", type: "str"}];
  | 
  | Seam.Remoting.registerType(Seam.Remoting.type.javax$faces$model$SelectItem);
  | 
Also I was able to import a non-component classes:

<script type="text/javascript" src="/myApp/seam/remoting/interface.js?test.RangeValue">/* IE */</script>
  | 
generated the following interface:

Seam.Remoting.type.test$RangeValue = function() {
  |   this.value = undefined;
  |   this.minValue = undefined;
  |   this.maxValue = undefined;
  |   Seam.Remoting.type.test$PriceRange.prototype.getValue = function() { return this.value; }
  |   Seam.Remoting.type.test$PriceRange.prototype.getMinValue = function() { return this.minValue; }
  |   Seam.Remoting.type.test$PriceRange.prototype.getMaxValue = function() { return this.maxValue; }
  |   Seam.Remoting.type.test$PriceRange.prototype.setValue = function(value) { this.value = value; }
  |   Seam.Remoting.type.test$PriceRange.prototype.setMinValue = function(minValue) { this.minValue = minValue; }
  |   Seam.Remoting.type.test$PriceRange.prototype.setMaxValue = function(maxValue) { this.maxValue = maxValue; }
  | }
  | 
  | Seam.Remoting.type.test$RangeValue.__name = "test.RangeValue";
  | Seam.Remoting.type.test$RangeValue.__metadata = [
  |   {field: "value", type: "number"},
  |   {field: "minValue", type: "number"},
  |   {field: "maxValue", type: "number"}];
  | 
  | Seam.Remoting.registerType(Seam.Remoting.type.test$RangeValue);
  | 
Everything looks good to me. 

Thanks for this great work.

Richard

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963368#3963368

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963368



More information about the jboss-user mailing list