Hello.
Im usign the AjaxProxy Wonder component, Im receiving data alreayd from the
server, and Im generating a grid using EXTJs, now when I select rows in the
grid, and then I click an AjaxSubmitButton, I have the following.

<wo:AjaxSubmitButton id = "reassign" class = "moreButton" action =
"$reasignSelections" value = "Reasign To Translator" onComplete
="reassignToUser()"/>

so in the action binding method Im doing nothing so far, jsut returning
null.

in the JS reassignToUser() Im doing the follwoing:

    var records = window.grid.selModel.getSelections();
    json.translations.reassignToTranslator(records);

but Im getting JSONRpcClientException: invalid or unexpected data in fixups:
unexpected exception, in the Safari debugger Console, and a:

ep 11 14:33:44 XWSLocalizer[51417] ERROR org.jabsorb.JSONRPCBridge  -
unexpected exception
JSONException: JSONArray[0] not found.
  at org.json.JSONArray.get(JSONArray.java:189)
  at org.jabsorb.JSONRPCBridge.next(JSONRPCBridge.java:1317)
  at org.jabsorb.JSONRPCBridge.traverse(JSONRPCBridge.java:1270)
  at org.jabsorb.JSONRPCBridge.applyFixup(JSONRPCBridge.java:1207)
  at org.jabsorb.JSONRPCBridge.call(JSONRPCBridge.java:494)
  at er.ajax.AjaxProxy.handleRequest(AjaxProxy.java:176)
     ... skipped 15 stack elements
  at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
  ... skipped 6 stack elements

Im seeing that the var records in the JS has actually data, and its an array
with a lot of stuff, but here are the objects in positions 0 - n, now, I
guess this is more about EXTJS, but inside each Object in the array, there
are many more stuff, but there is a data property and a toJSON, which
contains my values, ... so how to send and NSArray back to the srever with
this information?, and what to di in case its a lot of data?m I was thinking
in making a for loop to generate an arrya with the data, and to the server,
but what if there is a lot of data?,  is there a way to do this "magicaly"
:P.

So I guess the error Im getting, its because Im not sending the right Object
type.

Thanks

Gustavo
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to