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

rlhr do-not-reply at jboss.com
Wed Aug 2 03:16:49 EDT 2006


So I have the following javascript:

<script type="text/javascript" src="/peanutcafe/seam/remoting/resource/remote.js">/* IE */</script>
  | <script type="text/javascript" src="/peanutcafe/seam/remoting/interface.js?myManager">/* IE */</script>
  | 
  | <script type="text/javascript">
  | function getList(id){
  |   var myManager = Seam.Component.getInstance("myManager");
  |   var fctCallback = function(myList) {
  |     for (var idx = 0; idx < myList.length; idx++) {
  |       for(var field in myList[idx]) {
  |         alert(field + " : " + myList[idx][field]);
  |     }
  |  }
  |   myManager.getMyList(id, fctCallback );	
  | }
  | </script>
  | 

The list has been populated with the right number of object, but the javascript objects don't seems to be instantiated properly.

Did I miss anything?


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

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



More information about the jboss-user mailing list